Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2CC3BE8BE for ; Mon, 11 Feb 2013 11:12:27 +0000 (UTC) Received: (qmail 53330 invoked by uid 500); 11 Feb 2013 11:12:26 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 52839 invoked by uid 500); 11 Feb 2013 11:12:25 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 48388 invoked by uid 99); 11 Feb 2013 11:12:15 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 11:12:15 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D8C563C74C; Mon, 11 Feb 2013 11:12:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jan@apache.org To: commits@couchdb.apache.org X-Mailer: ASF-Git Admin Mailer 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. Message-Id: <20130211111214.D8C563C74C@tyr.zones.apache.org> Date: Mon, 11 Feb 2013 11:12:14 +0000 (UTC) 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 Authored: Sun Jan 27 20:00:58 2013 +0100 Committer: Simon Metson 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); } });