From 23d41e5617dc1c024d86b15cd3b1cb2213be8d2d Mon Sep 17 00:00:00 2001 From: kpdecker Date: Mon, 23 Dec 2013 14:26:56 -0600 Subject: [PATCH] Use watch atBegin command to handle failing tests --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9e6ba91b..d18af781 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -154,6 +154,10 @@ module.exports = function(grunt) { watch: { scripts: { + options: { + atBegin: true + }, + files: ['src/*', 'lib/**/*.js', 'spec/**/*.js'], tasks: ['build', 'tests', 'test'] } @@ -193,6 +197,6 @@ module.exports = function(grunt) { grunt.registerTask('travis', process.env.PUBLISH ? ['default', 'sauce', 'metrics', 'publish:latest'] : ['default']); - grunt.registerTask('dev', ['clean', 'build', 'tests', 'test', 'connect', 'watch']); + grunt.registerTask('dev', ['clean', 'connect', 'watch']); grunt.registerTask('default', ['clean', 'build', 'test', 'release']); };