1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | module.exports = function(grunt) {
|
11 |
|
12 |
|
13 | grunt.initConfig({
|
14 | test: {
|
15 | all: ['test/**/*.js']
|
16 | },
|
17 | lint: {
|
18 | all: ['grunt.js', 'lib/**/*.js', 'tasks/*.js', 'tasks/*/*.js', 'test/**/*.js']
|
19 | },
|
20 | watch: {
|
21 | scripts: {
|
22 | files: '<config:lint.all>',
|
23 | tasks: 'lint test'
|
24 | }
|
25 | },
|
26 | jshint: {
|
27 | options: {
|
28 | curly: true,
|
29 | eqeqeq: true,
|
30 | immed: true,
|
31 | latedef: true,
|
32 | newcap: true,
|
33 | noarg: true,
|
34 | sub: true,
|
35 | undef: true,
|
36 | boss: true,
|
37 | eqnull: true,
|
38 | node: true,
|
39 | es5: true
|
40 | },
|
41 | globals: {}
|
42 | }
|
43 | });
|
44 |
|
45 |
|
46 | grunt.registerTask('default', 'lint test');
|
47 |
|
48 | };
|