Skip to content

Commit c36bde5

Browse files
committed
Add TODO watching and improve linting scope
1 parent b17bd6f commit c36bde5

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

Gruntfile.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = function(grunt) {
55
grunt.loadNpmTasks('grunt-contrib-jshint');
66
grunt.loadNpmTasks('grunt-express-server');
77
grunt.loadNpmTasks('grunt-contrib-watch');
8+
grunt.loadNpmTasks('grunt-todo');
89

910
grunt.initConfig({
1011

@@ -56,15 +57,30 @@ module.exports = function(grunt) {
5657
reporter: require('jshint-stylish'),
5758
},
5859
all: [
59-
'gruntfile.js',
60+
'Gruntfile.js',
6061
'src/**/*.js',
6162
'test/**/*.js',
63+
'config/**/*.js',
64+
'coverage/**/*.js',
65+
'server.js',
66+
],
67+
},
68+
69+
70+
todo: {
71+
src: [
72+
'Gruntfile.js',
73+
'src/**/*.js',
74+
'test/**/*.js',
75+
'config/**/*.js',
76+
'coverage/**/*.js',
77+
'server.js',
6278
],
6379
},
6480
});
6581

6682
grunt.registerTask('serve', [ 'express:dev', 'watch' ]);
6783
grunt.registerTask('test', [ 'env:test', 'express:dev', 'mochaTest' ]);
6884
grunt.registerTask('lint', 'jshint');
69-
grunt.registerTask('default', [ 'lint', 'test' ]);
85+
grunt.registerTask('default', [ 'lint', 'todo', 'test' ]);
7086
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"grunt-contrib-watch": "^0.6.1",
2424
"grunt-env": "^0.4.1",
2525
"grunt-mocha-test": "^0.12.0",
26+
"grunt-todo": "^0.4.0",
2627
"jshint-stylish": "^1.0.0",
2728
"mocha": "^1.21.4",
2829
"should": "^4.0.4"

0 commit comments

Comments
 (0)