Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
- [grunt] any changes applied to nunjucks partials, which begins with…
Browse files Browse the repository at this point in the history
… `_*.nj`, will now kick-off renedring of all layouts during watch
  • Loading branch information
ArmorDarks committed Apr 2, 2015
1 parent a73e7d7 commit d47d17e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/grunt-contrib-watch.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ module.exports = ->
# @todo Add `newer:` when relative `grunt-newer` bug will be fixed
tasks: ['sprite']
nunjucks:
files: ['<%= path.source.layouts %>/{,**/}*.nj']
files: ['<%= path.source.layouts %>/{,**/}*.nj', '!<%= path.source.layouts %>{,**/}_*.nj']
tasks: ['newer:nunjucks']
nunjucksPartials:
files: ['<%= path.source.layouts %>{,**/}_*.nj']
tasks: ['nunjucks']
images:
files: ['<%= path.source.images %>/{,**/}*.{jpg,jpeg,gif,png}']
tasks: ['newer:responsive_images:thumbnails']

0 comments on commit d47d17e

Please sign in to comment.