Skip to content

Commit

Permalink
feat(build): compile only changed coffeescript files in watch task
Browse files Browse the repository at this point in the history
Use grunt-newer in both watch:coffee watch:coffeeTest

Closes #425
  • Loading branch information
jjt committed Nov 13, 2013
1 parent 7d0d96d commit 4196e37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'],
Expand Down
1 change: 1 addition & 0 deletions templates/common/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4196e37

Please sign in to comment.