forked from Dogeparty/dogeparty-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
63 lines (57 loc) · 2.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = function (grunt) {
var buildDir = 'build/';
var config = {
pkg: grunt.file.readJSON('package.json'),
build: {
options: {
buildDir: buildDir,
srcDir: 'src/',
assetsHome: 'assets/',
checkDeps: process.argv.indexOf('--dontcheckdeps') === -1,
minify: process.argv.indexOf('--dontminify') === -1,
depsDir: 'vendors/'
/*cdn: {
hosts: {
'css': ['https://css1.unowallet.dev', 'https://css2.unowallet.dev'],
'js': ['https://js1.unowallet.dev', 'https://js2.unowallet.dev'],
'assets': ['https://assets1.unowallet.dev', 'https://assets2.unowallet.dev']
}
}*/
},
process: {
files: [
{cwd: 'src/', src: 'index.html', dest: buildDir, expand: true},
{cwd: 'src/pages/', src: '*.html', dest: buildDir+'pages/', expand: true},
{cwd: 'src/locales/en', src: '*.json', dest: buildDir+'locales/en', expand: true}
]
},
copy: {
files: [
{src: 'src/robots.txt', dest: buildDir+'robots.txt'},
{cwd: 'src/assets/', src: '*', dest: buildDir+'assets/', expand: true}
]
}
},
transifex: {
languages: ['fr', 'de', 'da', 'zh_CN', 'zh_TW', 'fi', 'tr', 'it', 'ja', 'es', 'ru', 'cs']
}
}
/*config['chrome-extension'] = {
options: {
name: "unowallet",
version: pkg.version,
id: "00000000000000000000000000000000",
//updateUrl: "http://example.com/extension/111111/",
chrome: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
clean: true,
certDir: '.',
buildDir: '.',
resources: [
"build/**"
]
}
}*/
grunt.initConfig(config);
grunt.loadTasks('grunt-tasks');
grunt.registerTask('default', ['build']);
};