You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by cs...@apache.org on 2016/03/16 03:49:20 UTC
cordova-lib git commit: CB-10808 revert npm install for templates
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 <cs...@gmail.com>
Authored: Tue Mar 15 22:49:11 2016 -0400
Committer: Carlos Santana <cs...@gmail.com>
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