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