diff options
author | Ben Langfeld <ben@langfeld.me> | 2014-08-08 16:08:02 +0400 |
---|---|---|
committer | Ben Langfeld <ben@langfeld.me> | 2014-08-08 16:08:02 +0400 |
commit | 0801b7f1a8dee37876270dc0d454c462141231bb (patch) | |
tree | 763c676c0bad86246636864ad4e13ce8a741039f /Gruntfile.js | |
parent | 1854de6ffd8f0f60404fa9cb59321f7670c925b3 (diff) |
List TODOs before running tests
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 90acac2..70057ca 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -92,7 +92,7 @@ module.exports = function(grunt) { }, bundle: { files: ['src/**/*.js'], - tasks: ['jshint', 'uglify:bundle', 'uglify:min', 'notify:bundle', 'intern:unit'] + tasks: ['todo:src', 'jshint', 'uglify:bundle', 'uglify:min', 'notify:bundle', 'intern:unit'] }, libs: { files: ['bower_components/*/**/*.js', 'vendor_libs/*/**/*.js'], @@ -100,11 +100,11 @@ module.exports = function(grunt) { }, tests: { files: ['tests/candy/unit/**/*.js'], - tasks: ['jshint', 'intern:unit'] + tasks: ['todo:tests', 'jshint', 'intern:unit'] }, functional_tests: { files: ['tests/candy/functional/**/*.js'], - tasks: ['jshint', 'intern:functional'] + tasks: ['todo:tests', 'jshint', 'intern:functional'] } }, natural_docs: { @@ -179,6 +179,11 @@ module.exports = function(grunt) { all: { src: 'lcov.info', } + }, + todo: { + options: {}, + src: ['src/**/*.js'], + tests: ['tests/**/*.js'] } }); @@ -193,9 +198,10 @@ module.exports = function(grunt) { grunt.loadNpmTasks('intern'); grunt.loadNpmTasks('grunt-clear'); grunt.loadNpmTasks('grunt-coveralls'); + grunt.loadNpmTasks('grunt-todo'); grunt.registerTask('test', ['intern:all']); - grunt.registerTask('ci', ['jshint', 'build', 'intern:all', 'coveralls:all', 'docs']); + grunt.registerTask('ci', ['todo', 'jshint', 'build', 'intern:all', 'coveralls:all', 'docs']); grunt.registerTask('build', ['uglify:libs', 'uglify:libs-min', 'uglify:bundle', 'uglify:min']); grunt.registerTask('default', [ 'jshint', 'build', 'notify:default', 'intern:unit' |