From 34f1aa354bf2a2c93f32d2fdf87c7b6d5374f604 Mon Sep 17 00:00:00 2001 From: Rob Halff Date: Fri, 17 Oct 2014 01:16:27 +0200 Subject: [PATCH] split jshint task for test & lib --- Gruntfile.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 09aa93fe..26e4feb7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -30,8 +30,11 @@ module.exports = function(grunt) { gruntfile: { src: 'Gruntfile.js' }, - lib_test: { - src: ['lib/**/*.js', 'test/**/*.js'] + lib: { + src: ['lib/**/*.js'] + }, + test: { + src: ['test/**/*.js'] } }, watch: { @@ -39,9 +42,13 @@ module.exports = function(grunt) { files: '<%= jshint.gruntfile.src %>', tasks: ['jshint:gruntfile'] }, - lib_test: { - files: '<%= jshint.lib_test.src %>', - tasks: ['jshint:lib_test'] + lib: { + files: ['<%= jshint.lib.src %>'], + tasks: ['jshint:lib'] + }, + test: { + files: ['<%= jshint.test.src %>'], + tasks: ['jshint:test'] } }, browserify: { @@ -104,7 +111,7 @@ module.exports = function(grunt) { // list of files to exclude exclude: [ - + ], // test results reporter to use