cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject cordova-lib git commit: CB-10808 revert npm install for templates
Date Wed, 16 Mar 2016 02:49:20 GMT
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 <csantana23@gmail.com>
Authored: Tue Mar 15 22:49:11 2016 -0400
Committer: Carlos Santana <csantana23@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


Mime
View raw message