From 6c1132bfaff71be8faadff268566f9a7e5c79cd6 Mon Sep 17 00:00:00 2001 From: Nikolai Onken Date: Wed, 27 May 2015 13:19:29 +0200 Subject: [PATCH] Revert "Revert "Merge account"" --- node_modules/frontdoor/lib/section.js | 1 + plugins/c9.static/cdn.cli.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/node_modules/frontdoor/lib/section.js b/node_modules/frontdoor/lib/section.js index 1e027ef0..4162f947 100644 --- a/node_modules/frontdoor/lib/section.js +++ b/node_modules/frontdoor/lib/section.js @@ -87,6 +87,7 @@ module.exports = function Section(name, description, types) { if (!sections[name]) sections[name] = []; + section.parent = this; sections[name].push(section); }; diff --git a/plugins/c9.static/cdn.cli.js b/plugins/c9.static/cdn.cli.js index f9ea95b6..359d8cee 100644 --- a/plugins/c9.static/cdn.cli.js +++ b/plugins/c9.static/cdn.cli.js @@ -147,7 +147,7 @@ define(function(require, exports, module) { function done(err) { if (err) { - console.error(err); + console.error(err, err.stack); process.exit(1); } pending--; @@ -242,6 +242,10 @@ define(function(require, exports, module) { return false; } } + if (name == "node_modules" && /plugins\/[^\/\\]+/.test(dir)) + return true; + if (/^(LICENSE|README.md)$/.test(name)) + return true; return /\.(jsx?|css|less|xml|ejs|prv|pub|sh)$|(^|[/])^(mock|example|\.[^/]*|package.json)[/]?$/.test(name); }, onDir: function(e) { console.log("\x1b [1A\x1b[0K" + e) }