-
Notifications
You must be signed in to change notification settings - Fork 1
/
gruntfile.js
83 lines (79 loc) · 2.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = function (grunt) {
grunt.initConfig({
copy: {
fonts: {
files: [
{ expand: true, cwd: 'bower_components/bootstrap/fonts', src: ['*'], dest: 'dist/fonts/', flatten: true},
{ expand: true, cwd: 'bower_components/chosen', src: ['*.png'], dest: 'dist/css/', flatten: true},
]
},
maps: {
files: [
{ expand: true, cwd: 'bower_components/bootstrap/dist/css/', src: ['*.map'], dest: 'dist/css/', flatten: true}
]
},
i18n: {
files: [
{ expand: true, cwd: 'app', src: ['i18n/*'], dest: 'dist/'},
]
},
html: {
files: [
{ expand: true, cwd: 'app', src: ['tpl/*'], dest: 'dist/'},
{ expand: true, cwd: 'app', src: ['*.html'], dest: 'dist/'}
]
},
config: {
files: [
{ expand: true, cwd: 'app/', src: ['config.js'], dest: 'dist/'},
]
}
},
concat: {
style: {
src: [
"bower_components/html5-boilerplate/css/normalize.css",
"bower_components/html5-boilerplate/css/main.css",
"bower_components/bootstrap/dist/css/bootstrap.min.css",
"bower_components/chosen/chosen.min.css",
"bower_components/angular-chosen-localytics/chosen-spinner.css",
"app/css/app.css"
],
dest: 'dist/css/style.css'
},
js: {
src: [
"bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js",
"bower_components/jquery/dist/jquery.min.js",
"bower_components/bootstrap/dist/js/bootstrap.min.js",
"bower_components/angular/angular.min.js",
"bower_components/angular-sanitize/angular-sanitize.min.js",
"bower_components/angular-ui-router/release/angular-ui-router.min.js",
"bower_components/angular-bootstrap/ui-bootstrap.min.js",
"bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js",
"bower_components/angular-timer/dist/angular-timer.min.js",
"bower_components/chosen/chosen.jquery.min.js",
"bower_components/angular-chosen-localytics/chosen.js",
"bower_components/angular-translate/angular-translate.min.js",
"bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js",
"bower_components/screenfull/dist/screenfull.min.js",
"app/lib/js/*.js",
"app/js/*.js"
],
dest: 'dist/js/app.js'
}
},
watch: {
app: {
files: "app/**",
tasks: ['concat','copy']
}
}
});
// load plugins
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
// register at least this one task
grunt.registerTask('default', [ 'concat', 'copy' ]);
};