Skip to content

Instantly share code, notes, and snippets.

@frontendbeast
Created November 29, 2013 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frontendbeast/7710467 to your computer and use it in GitHub Desktop.
Save frontendbeast/7710467 to your computer and use it in GitHub Desktop.
Watch task for grunt assemble using grunt-newer (https://github.com/tschaub/grunt-newer)
watch: {
assemble: {
files: ['<%= app.app %>/*.html', '!<%= app.app %>/<%= app.templates %>/{,**/}*'],
tasks: ['newer:assemble:server']
},
assemble_templates: {
files: ['<%= app.app %>/<%= app.templates %>/{,**/}*.html', 'data.json'],
tasks: ['assemble:server']
},
compass: {
files: ['<%= app.app %>/**/*.{scss,sass}'],
tasks: ['compass:server']
},
livereload: {
files: [
'<%= app.tmp %>/**/*.html',
'<%= app.tmp %>/**/*.css',
'<%= app.app %>/**/*.js'
],
options: {
livereload: true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment