diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index c72ae327c..97e89cb5e 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -20,11 +20,11 @@ module.exports = function (grunt) { watch: { coffee: { files: ['<%%= yeoman.app %>/scripts/{,*/}*.coffee'], - tasks: ['coffee:dist'] + tasks: ['newer:coffee:dist'] }, coffeeTest: { files: ['test/spec/{,*/}*.{coffee,js}'], - tasks: ['coffee:test', 'karma'] + tasks: ['newer:coffee:test', 'karma'] },<% if (compassBootstrap) { %> compass: { files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], diff --git a/templates/common/_package.json b/templates/common/_package.json index 8fadba0de..50441dc0c 100644 --- a/templates/common/_package.json +++ b/templates/common/_package.json @@ -19,6 +19,7 @@ "grunt-contrib-uglify": "~0.2.0", "grunt-contrib-watch": "~0.5.2", "grunt-google-cdn": "~0.2.0", + "grunt-newer": "~0.5.4", "grunt-ngmin": "~0.0.2", "grunt-rev": "~0.1.0", "grunt-svgmin": "~0.2.0",