From b1eeb68a8290aee930887fc473034ee7f8e2ccc3 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Sat, 16 Nov 2013 12:18:06 +0000 Subject: [PATCH] fix(build): use grunt-newer for styles and jshint Applied @tschaub's changes to generator-webapp using grunt-newer for jshint and style copying. See https://github.com/yeoman/generator-webapp/pull/193 --- templates/common/Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index cd9055106..1900bc126 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -41,7 +41,7 @@ module.exports = function (grunt) { },<% } %> styles: { files: ['<%%= yeoman.app %>/styles/{,*/}*.css'], - tasks: ['copy:styles', 'autoprefixer'] + tasks: ['newer:copy:styles', 'autoprefixer'] }, gruntfile: { files: ['Gruntfile.js'] @@ -410,7 +410,7 @@ module.exports = function (grunt) { ]); grunt.registerTask('default', [ - 'jshint', + 'newer:jshint', 'test', 'build' ]);