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