From 4871cfc49c5a85a56d2e2c023bc9db601ce14fce Mon Sep 17 00:00:00 2001 From: David Kaneda Date: Sun, 17 Feb 2013 09:25:20 -0800 Subject: [PATCH] Update source changes with watch --- Gruntfile.coffee | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 754ba301..51204a90 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -73,6 +73,12 @@ module.exports = (grunt) -> src: ["*/**", "!{test,node_modules,build,submodules,jqtouch*,themes/compass-recipes,themes/scss}/**", "*.{md,txt,htaccess}"] dest: "<%= dirs.build %>/" + source: + expand: yes + cwd: 'src' + src: ["**/*.js"] + dest: "<%= dirs.build %>/src/" + dist: files: [ expand: yes @@ -183,8 +189,11 @@ module.exports = (grunt) -> watch: theming: - files: "themes/scss/**/*.scss" - tasks: ["compass"] + files: 'themes/scss/**/*.scss' + tasks: ['compass'] + source: + files: 'src/**/*.js' + tasks: ['copy:source'] livereload: options: