forked from siteleaf/siteleaf.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
41 lines (37 loc) · 838 Bytes
/
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
options: {
separator: ';',
},
dist: {
src: ['scripts/_source/*.js'],
dest: 'scripts/all.js',
},
},
uglify: {
my_target: {
files: {
'scripts/all.js': ['scripts/all.js']
}
}
},
watch: {
scripts: {
files: ['scripts/_source/*.js'],
tasks: ['concat'],
options: {
livereload: true,
},
},
},
});
// Load plugins.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Register tasks.
grunt.registerTask('default', ['concat', 'uglify']);
grunt.registerTask('dev', ['concat', 'watch']);
};