-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGruntfile.js
33 lines (30 loc) · 1.47 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*global module:false*/
module.exports = function (grunt) {
// Load multiple grunt tasks using globbing patterns
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
deploy: [
'dist/*'
]
},
curl: {
// Images
// Source: https://github.com/schmich/hearthstone-card-images
'dist/images.json': 'https://raw.githubusercontent.com/schmich/hearthstone-card-images/master/images.json',
// Cards
// Source: https://api.hearthstonejson.com/v1/latest/
'dist/deDE/cards.json': 'https://api.hearthstonejson.com/v1/31532/deDE/cards.json',
'dist/enUS/cards.json': 'https://api.hearthstonejson.com/v1/31532/enUS/cards.json',
'dist/esES/cards.json': 'https://api.hearthstonejson.com/v1/31532/esES/cards.json',
'dist/frFR/cards.json': 'https://api.hearthstonejson.com/v1/31532/frFR/cards.json',
'dist/itIT/cards.json': 'https://api.hearthstonejson.com/v1/31532/itIT/cards.json',
'dist/ptBR/cards.json': 'https://api.hearthstonejson.com/v1/31532/ptBR/cards.json',
'dist/ruRU/cards.json': 'https://api.hearthstonejson.com/v1/31532/ruRU/cards.json',
'dist/zhCN/cards.json': 'https://api.hearthstonejson.com/v1/31532/zhCN/cards.json'
}
});
// Download coards
grunt.registerTask( 'download', [ 'clean', 'curl' ] );
};