Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-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 29ADB19739 for ; Wed, 16 Mar 2016 02:49:21 +0000 (UTC) Received: (qmail 61024 invoked by uid 500); 16 Mar 2016 02:49:21 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 60993 invoked by uid 500); 16 Mar 2016 02:49:21 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 60984 invoked by uid 99); 16 Mar 2016 02:49:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 02:49:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CF3ADDFA0B; Wed, 16 Mar 2016 02:49:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: csantanapr@apache.org To: commits@cordova.apache.org Message-Id: <6776e0a9089246b7bd713e880ac84724@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cordova-lib git commit: CB-10808 revert npm install for templates Date: Wed, 16 Mar 2016 02:49:20 +0000 (UTC) Repository: cordova-lib Updated Branches: refs/heads/master 07354885e -> 186eea067 CB-10808 revert npm install for templates Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/186eea06 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/186eea06 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/186eea06 Branch: refs/heads/master Commit: 186eea067d3d05f9e65ef89faf55c00b4cea9224 Parents: 0735488 Author: Carlos Santana Authored: Tue Mar 15 22:49:11 2016 -0400 Committer: Carlos Santana Committed: Tue Mar 15 22:49:11 2016 -0400 ---------------------------------------------------------------------- cordova-lib/src/cordova/create.js | 8 -------- 1 file changed, 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/186eea06/cordova-lib/src/cordova/create.js ---------------------------------------------------------------------- diff --git a/cordova-lib/src/cordova/create.js b/cordova-lib/src/cordova/create.js index 9150020..0960131 100644 --- a/cordova-lib/src/cordova/create.js +++ b/cordova-lib/src/cordova/create.js @@ -372,13 +372,5 @@ function create(dir, optionalId, optionalName, cfg) { if (cfg.id) conf.setPackageName(cfg.id); if (cfg.name) conf.setName(cfg.name); conf.write(); - - //run npm install if package.json is at the root of cordova project - if (fs.existsSync(path.join(dir,'package.json'))){ - shell.pushd(dir); - events.emit('log', 'Executing npm install...'); - shell.exec('npm install'); - shell.popd(); - } }); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org