-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
58 lines (43 loc) · 1.54 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
module.exports = function(grunt) {
grunt.initConfig({
less: {
development: {
options: {
paths: ["static/development/less"]
},
files: {
"static/production/css/layout.css": "static/development/less/layout.less",
"static/production/css/dialog.css": "static/development/less/dialog.less"
}
}
},
watch: {
files: 'static/development/less/**/*.less',
tasks: ['less']
},
uglify: {
jquery: {
files: {
'static/lib/jquery-1.9.1.min.js': 'static/lib/jquery-1.9.1.js'
}
},
bootstrap: {
files: {
'static/bootstrap/js/bootstrap.min.js': 'static/bootstrap/js/bootstrap.js'
}
},
jqueryui: {
files: {
'static/lib/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js': 'static/lib/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('watchless', ['watch']);
grunt.registerTask('bootstrapmin', ['uglify:bootstrap']);
grunt.registerTask('jqueryuimin', ['uglify:jqueryui']);
grunt.registerTask('jquerymin', ['uglify:jquery']);
};