couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [28/50] [abbrv] git commit: make clean less aggressive - if an addon is configured by name only (e.g. is in the fauxton directory) don't clean it up.
Date Mon, 11 Feb 2013 11:12:14 GMT
make clean less aggressive - if an addon is configured by name only (e.g. is in
the fauxton directory) don't clean it up.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/37e184f5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/37e184f5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/37e184f5

Branch: refs/heads/fauxton
Commit: 37e184f5e21b1f88a36812f6a9526dd38bc8c62d
Parents: fbca1d9
Author: Simon Metson <simon+github@cloudant.com>
Authored: Sun Jan 27 20:00:58 2013 +0100
Committer: Simon Metson <simon+github@cloudant.com>
Committed: Sun Jan 27 20:00:58 2013 +0100

----------------------------------------------------------------------
 src/fauxton/grunt.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/37e184f5/src/fauxton/grunt.js
----------------------------------------------------------------------
diff --git a/src/fauxton/grunt.js b/src/fauxton/grunt.js
index 19a6d96..09cf12d 100644
--- a/src/fauxton/grunt.js
+++ b/src/fauxton/grunt.js
@@ -14,16 +14,16 @@ module.exports = function(grunt) {
   };
 
   var cleanable = function(){
+    // Whitelist files and directories to be cleaned
     var path = require('path');
     // You'll always want to clean these two directories
     var theListToClean = ["dist/", "app/load_addons.js"];
-
-    // Now find the addons you have and add them for cleaning up
+    // Now find the external addons you have and add them for cleaning up
     if (path.existsSync("settings.json")){
       var settings = grunt.file.readJSON("settings.json") || {deps: []};
       settings.deps.forEach(function(addon){
-        // Don't clean up the default addons
-        if (['config', 'logs', 'stats'].indexOf(addon.name) == -1){
+        // Only clean addons that are included from a local dir
+        if (addon.path){
           theListToClean.push("app/addons/" + addon.name);
         }
       });


Mime
View raw message