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