# HG changeset patch # User Ludovic Chabant # Date 1385330645 28800 # Node ID 886f36b05e5fcd2951f897440bba20867ef28ce9 # Parent 6c261cb94631fa831f5750e5c026ddd20c5f8641 More optimized `watch` mode for `grunt`. diff -r 6c261cb94631 -r 886f36b05e5f Gruntfile.js --- a/Gruntfile.js Sat Nov 23 13:35:37 2013 -0800 +++ b/Gruntfile.js Sun Nov 24 14:04:05 2013 -0800 @@ -58,6 +58,16 @@ {expand: true, cwd: 'static/', dest: 'build/', src: ['bootstrap/js/*.js']} ] }, + dev_scripts: { + files: [ + {expand: true, cwd: 'static/', dest: 'build/', src: ['js/wikked.js', 'js/wikked/**']} + ] + }, + dev_templates: { + files: [ + {expand: true, cwd: 'static/', dest: 'build/', src: ['tpl/**']} + ] + }, production: { files: [ {expand: true, cwd: 'static/', dest: 'build/', src: ['js/require.js']}, @@ -72,8 +82,12 @@ }, watch: { scripts: { - files: ['static/js/**/*.js', 'static/tpl/**/*.html'], - tasks: ['jshint', 'copy:development'] + files: ['static/js/wikked.js', 'static/js/wikked/**'], + tasks: ['jshint:all', 'copy:dev_scripts'] + }, + templates: { + files: ['static/tpl/**/*.html'], + tasks: ['copy:dev_templates'] }, styles: { files: ['static/css/**/*.less'],