1 |
|
2 | module.exports = function(grunt) {
|
3 |
|
4 |
|
5 | grunt.initConfig({
|
6 |
|
7 | files: ['Gruntfile.js', 'tasks/**/*.js', 'test/**/*.js'],
|
8 |
|
9 | watch: {
|
10 | all: {
|
11 | files: '<%= files %>'
|
12 | }
|
13 | },
|
14 |
|
15 | jshint: {
|
16 | all: '<%= files %>',
|
17 | options: {
|
18 | esnext: true
|
19 | }
|
20 | },
|
21 |
|
22 | complexity: {
|
23 | generic: grunt.file.readJSON('complexity.json')
|
24 | }
|
25 |
|
26 | });
|
27 |
|
28 | grunt.loadNpmTasks('grunt-contrib-jshint');
|
29 |
|
30 | grunt.registerTask('default', ['jshint', 'complexity']);
|
31 |
|
32 |
|
33 | grunt.loadTasks('tasks');
|
34 |
|
35 | };
|