-
Notifications
You must be signed in to change notification settings - Fork 0
/
GruntFile.js
executable file
·42 lines (36 loc) · 1.04 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
var js_files = [
'web/public/js/jquery-2.1.1.js',
'web/public/js/bootstrap.min.js',
'web/public/js/plugins/metisMenu/jquery.metisMenu.js',
'web/public/js/plugins/slimscroll/jquery.slimscroll.min.js',
'web/public/js/inspinia.js',
'web/public/js/plugins/pace/pace.min.js',
'web/public/js/tools.js',
];
module.exports = function(grunt){
grunt.initConfig({
jshint: {
all: js_files
},
concat: {
options: {
separator: ';',
},
dist: {
src: js_files,
dest: 'web/prod/app.min.js',
},
},
uglify: {
dist : {
files: {
'web/prod/app.min.js': ['web/prod/app.min.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', [/*'jshint',*/ 'concat:dist', 'uglify:dist']);
}