-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
38 lines (36 loc) · 977 Bytes
/
gruntfile.js
File metadata and controls
38 lines (36 loc) · 977 Bytes
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
module.exports = function(grunt) {
grunt.initConfig({
jslint: {
js_files: {
src: ['set.js'],
directives: {
// http://jslint.com/#JSLINT_OPTIONS
browser: true,
devel: true,
plusplus: true,
todo: true,
indent: 4,
ass: true,
newcap: true
}
}
},
uglify: {
set: {
files: {
'set.min.js' : ['set.js']
}
}
},
watch: {
js: {
files: ['set.js'],
tasks: ['jslint', 'uglify']
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-jslint');
grunt.registerTask('default', ['watch']);
};