cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
Subject git commit: CB-7618 Fix WP8 build due to missing node_modules
Date Tue, 23 Sep 2014 18:32:54 GMT
Repository: cordova-wp8
Updated Branches:
  refs/heads/master 271de27b5 -> b22b88a2b


CB-7618 Fix WP8 build due to missing node_modules


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/b22b88a2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/b22b88a2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/b22b88a2

Branch: refs/heads/master
Commit: b22b88a2beb897530678a8c55ee1c44c904c6370
Parents: 271de27
Author: sgrebnov <v-segreb@microsoft.com>
Authored: Tue Sep 23 22:32:43 2014 +0400
Committer: sgrebnov <v-segreb@microsoft.com>
Committed: Tue Sep 23 22:32:43 2014 +0400

----------------------------------------------------------------------
 bin/lib/create.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/b22b88a2/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index ab073ca..5b1978f 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -67,6 +67,8 @@ module.exports.run = function (argv) {
     shell.cp("-rf", path.join(platformRoot, 'VERSION'), projectPath);
     // copy the defaults.xml into config.xml so this project can be built when create is
called minus the cordova-cli
     shell.cp(path.join(projectPath, "cordova", "defaults.xml"), path.join(projectPath, "config.xml"));
+    // CB-7618 node_modules must be copied to project folder
+    shell.cp('-r', path.join(platformRoot, 'node_modules'), path.join(projectPath, 'cordova'));
 
     // if any custom template is provided, just copy it over created project
     if (customTemplate && fs.existsSync(customTemplate)) {


Mime
View raw message