forked from longbill/jquery-date-range-picker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
46 lines (43 loc) · 1019 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
42
43
44
45
46
module.exports = function(grunt) {
grunt.initConfig({
broccoli: {
dist: {
dest: 'dist',
env: 'production'
},
dev: {
dest: 'dist',
env: 'development'
}
},
jshint: {
files: ['lib/**/*.js'],
options: {
globals: {
jQuery: true
},
jshintrc: 'jshintrc.json'
}
},
jscs: {
src: "lib/*.js",
options: {
config: "jscsrc.json",
esnext: true, // If you use ES6 http://jscs.info/overview.html#esnext
verbose: true, // If you need output with rule names http://jscs.info/overview.html#verbose
fix: true // Autofix code style violations when possible.
}
},
watch: {
scripts: {
files: ['lib/**/*.js', 'sass/**/*.scss'],
tasks: ['jshint', /*'jscs',*/ 'broccoli:dev:build']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-broccoli');
grunt.registerTask('default', ['jshint', 'jscs', 'broccoli:dist:build']);
};