You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/04/07 23:07:33 UTC

[37/53] [abbrv] git commit: Fixed the Grunt watch configuration - watching the css files to call LESS and then reload server was infinitely looping. Less would be compiled and change css, which then made reload happen. However, changing less caused a rel

Fixed the Grunt watch configuration - watching the css files to call LESS and then reload server was infinitely looping. Less would be compiled and change css, which then made reload happen. However, changing less caused a reload, so there was two reloads for each. This is now fixed


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/100a9dfc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/100a9dfc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/100a9dfc

Branch: refs/heads/master
Commit: 100a9dfc65441911b40e09c2f2ed1d8e85ad85a6
Parents: 0b2fbdf
Author: Josh Bavari <jo...@raisemore.com>
Authored: Sun Mar 30 09:09:29 2014 -0500
Committer: Josh Bavari <jo...@raisemore.com>
Committed: Sun Mar 30 09:09:29 2014 -0500

----------------------------------------------------------------------
 Gruntfile.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/100a9dfc/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index 948d284..0a49e13 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -7,9 +7,13 @@ module.exports = function(grunt) {
     pkg: grunt.file.readJSON('package.json'),
     config:grunt.file.readJSON('config.json'),
     watch: {
-      changeFiles: {
-        files: ['attachments/*.html', 'attachments/partials/**/*.html', 'attachments/css/**/*.less', 'attachments/css/**/*.css', 'attachments/js/**/*.js'],
-        tasks: ['less', 'shell:reloadServer']
+      reloadServer: {
+        files: ['attachments/*.html', 'attachments/partials/**/*.html', 'attachments/css/styles.css', 'attachments/js/**/*.js'],
+        tasks: ['shell:reloadServer']
+      },
+      stylesheets: {
+        files: ['attachments/css/**/*.less'],
+        tasks: ['less']
       },
       options: {
         livereload: true