Skip to content

Commit b1eeb68

Browse files
committed
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 yeoman/generator-webapp#193
1 parent 3eac6c6 commit b1eeb68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/common/Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function (grunt) {
4141
},<% } %>
4242
styles: {
4343
files: ['<%%= yeoman.app %>/styles/{,*/}*.css'],
44-
tasks: ['copy:styles', 'autoprefixer']
44+
tasks: ['newer:copy:styles', 'autoprefixer']
4545
},
4646
gruntfile: {
4747
files: ['Gruntfile.js']
@@ -410,7 +410,7 @@ module.exports = function (grunt) {
410410
]);
411411

412412
grunt.registerTask('default', [
413-
'jshint',
413+
'newer:jshint',
414414
'test',
415415
'build'
416416
]);

0 commit comments

Comments
 (0)