Skip to content

Commit b39a31d

Browse files
committed
Merge pull request #453 from jjt/gruntnewer
feat(build): compile only changed coffeescript files in watch task
2 parents e2f1c05 + 4196e37 commit b39a31d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: templates/common/Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ module.exports = function (grunt) {
2020
watch: {
2121
coffee: {
2222
files: ['<%%= yeoman.app %>/scripts/{,*/}*.coffee'],
23-
tasks: ['coffee:dist']
23+
tasks: ['newer:coffee:dist']
2424
},
2525
coffeeTest: {
2626
files: ['test/spec/{,*/}*.{coffee,js}'],
27-
tasks: ['coffee:test', 'karma']
27+
tasks: ['newer:coffee:test', 'karma']
2828
},<% if (compassBootstrap) { %>
2929
compass: {
3030
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],

Diff for: templates/common/_package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"grunt-contrib-uglify": "~0.2.0",
2020
"grunt-contrib-watch": "~0.5.2",
2121
"grunt-google-cdn": "~0.2.0",
22+
"grunt-newer": "~0.5.4",
2223
"grunt-ngmin": "~0.0.2",
2324
"grunt-rev": "~0.1.0",
2425
"grunt-svgmin": "~0.2.0",

0 commit comments

Comments
 (0)