Skip to content

Instantly share code, notes, and snippets.

@brunogarcia
Created October 14, 2015 08:27
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 brunogarcia/f0a932a1d48d1ddc5353 to your computer and use it in GitHub Desktop.
Save brunogarcia/f0a932a1d48d1ddc5353 to your computer and use it in GitHub Desktop.
/*
Watch
Run tasks whenever watched files change
https://www.npmjs.com/package/grunt-contrib-watch
*/
'watch': {
css: {
files: '<%= config.dev %>/assets/scss/*.scss',
tasks: ['sass:dev']
},
js: {
files: '<%= config.dev %>/assets/js/main.js',
tasks: ['jshint']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= config.dev %>/{,*/}*.html',
'<%= config.dev %>/assets/css/{,*/}*',
'<%= config.dev %>/assets/img/{,*/}*',
'<%= config.dev %>/assets/js/{,*/}*.js'
]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment