1 | /*global module:false*/
|
2 | module.exports = function(grunt) {
|
3 |
|
4 | // Project configuration.
|
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 | },
|
18 |
|
19 | complexity: {
|
20 | generic: grunt.file.readJSON('complexity.json')
|
21 | }
|
22 |
|
23 | });
|
24 |
|
25 | grunt.loadNpmTasks('grunt-contrib-jshint');
|
26 |
|
27 | grunt.registerTask('default', ['jshint', 'complexity']);
|
28 |
|
29 | // Used for testing only, you shouldn't add this to your code:
|
30 | grunt.loadTasks('tasks');
|
31 |
|
32 | };
|