You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/10/20 13:20:30 UTC
cordova-windows git commit: CB-12042 Copy base.js to www directory at
create
Repository: cordova-windows
Updated Branches:
refs/heads/master bcc0a11cd -> 7d9b24cec
CB-12042 Copy base.js to www directory at create
Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/7d9b24ce
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/7d9b24ce
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/7d9b24ce
Branch: refs/heads/master
Commit: 7d9b24cecd05cd4392824a465b8f447931d5817f
Parents: bcc0a11
Author: Vladimir Kotikov <v-...@microsoft.com>
Authored: Thu Oct 20 16:03:22 2016 +0300
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Thu Oct 20 16:03:22 2016 +0300
----------------------------------------------------------------------
bin/lib/create.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/7d9b24ce/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index eb6bb7d..08c5156 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -92,6 +92,10 @@ module.exports.create = function (destinationDir, config, options) {
recursiveCreateDirectory(destinationDirectory);
shell.cp('-f', srcBaseJsPath, destBaseJsPath);
+ // CB-12042 Also copy base.js to www directory
+ shell.mkdir('-p', path.join(projectPath, 'www/WinJS/js'));
+ shell.cp('-f', srcBaseJsPath, path.join(projectPath, 'www/WinJS/js/base.js'));
+
// replace specific values in manifests' templates
events.emit('verbose', 'Updating manifest files with project configuration.');
[ 'package.windows.appxmanifest', 'package.phone.appxmanifest',
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org