From 27fecd15b50ba6bee6cde92466322e218d2573ee Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 6 Sep 2013 23:12:42 -0600 Subject: [PATCH] Lint fixtures --- gruntfile.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 3082984..41cecc0 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -11,6 +11,8 @@ module.exports = function(grunt) { var gruntfileSrc = 'gruntfile.js'; var tasksSrc = 'tasks/**/*.js'; var testSrc = 'test/**/*.spec.js'; + var fixturesJs = 'test/fixtures/**/*.js'; + var fixturesAll = 'test/fixtures/**/*'; grunt.initConfig({ @@ -33,11 +35,14 @@ module.exports = function(grunt) { tasks: { src: tasksSrc }, - fixtures: { + tests: { options: { jshintrc: 'test/.jshintrc' }, src: testSrc + }, + fixturesJs: { + src: fixturesJs } }, @@ -50,12 +55,12 @@ module.exports = function(grunt) { files: testSrc, tasks: ['newer:cafemocha'] }, - fixtures: { - files: 'test/fixtures/**/*', + fixturesAll: { + files: fixturesAll, tasks: ['cafemocha'] }, - all: { - files: [gruntfileSrc, tasksSrc, testSrc], + allJs: { + files: [gruntfileSrc, tasksSrc, testSrc, fixturesJs], tasks: ['newer:jshint'] } }