From 1c8763e69bd3fcc92f390bb93b3c4be2ab5968a2 Mon Sep 17 00:00:00 2001 From: Suraj Pindoria Date: Wed, 24 Jun 2015 17:38:50 -0700 Subject: [PATCH 1/2] CB-8965 Copy cordova-js-src to platform folder during create --- bin/lib/create.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/create.js b/bin/lib/create.js index 281cd001..cd990b15 100644 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -61,6 +61,8 @@ module.exports.run = function (argv) { } console.log('Copying necessary files to ' + projectPath); + // Copy cordova-js-src directory + shell.cp('-rf', path.join(platformRoot, 'cordova-js-src'), path.join(projectPath, 'platform_www')); // Copy the template source files to the new destination shell.cp('-rf', path.join(templatePath, '*'), projectPath); // Copy our unique VERSION file, so peeps can tell what version this project was created from. From 212dc749037e5e2b1d4f5e59adafdc6f86095859 Mon Sep 17 00:00:00 2001 From: Suraj Pindoria Date: Wed, 5 Aug 2015 14:13:23 -0700 Subject: [PATCH 2/2] CB-8965 [wp8] fixed order of ops, wait for project creation before adding to it --- bin/lib/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index cd990b15..f8761095 100644 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -61,10 +61,10 @@ module.exports.run = function (argv) { } console.log('Copying necessary files to ' + projectPath); - // Copy cordova-js-src directory - shell.cp('-rf', path.join(platformRoot, 'cordova-js-src'), path.join(projectPath, 'platform_www')); // Copy the template source files to the new destination shell.cp('-rf', path.join(templatePath, '*'), projectPath); + // Copy cordova-js-src directory + shell.cp('-rf', path.join(platformRoot, 'cordova-js-src'), path.join(projectPath, 'platform_www')); // Copy our unique VERSION file, so peeps can tell what version this project was created from. 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