cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [07/13] cordova-browser git commit: output create events, copy manifest.json from template to platform_www
Date Sat, 17 Jun 2017 00:11:48 GMT
output create events, copy manifest.json from template to platform_www


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

Branch: refs/heads/master
Commit: 5b837270c26d0ee8856ebbf018f516f5998136c9
Parents: 146fb74
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Jun 7 15:55:11 2017 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Jun 7 15:55:11 2017 -0700

----------------------------------------------------------------------
 bin/lib/create.js | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/5b837270/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index e14000a..37f9b11 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -25,19 +25,20 @@ var args = process.argv;
 var path = require('path');
 var ROOT    = path.join(__dirname, '..', '..');
 var ConfigParser = require('cordova-common').ConfigParser;
+var events = require('cordova-common').events;
 var check_reqs = require('./check_reqs');
 
+
 module.exports.createProject = function(project_path,package_name,project_name){
 /*
     // create the dest and the standard place for our api to live
     // platforms/platformName/cordova/Api.js
+*/
 
-    // TODO: other platforms emit log info
     events.emit('log', 'Creating Cordova project for cordova-browser:');
-    events.emit('log', '\tPath: ' + dest);
-    events.emit('log', '\tName: ' + projectName);
+    events.emit('log', '\tPath: ' + project_path);
+    events.emit('log', '\tName: ' + project_name);
 
-*/
 
     var VERSION = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8');
 
@@ -83,5 +84,9 @@ module.exports.createProject = function(project_path,package_name,project_name){
     shell.cp(path.join(ROOT, 'cordova-lib', 'cordova.js'),
                    path.join(project_path,'platform_www'));
 
+    //copy cordova js file to platform_www
+    shell.cp(path.join(ROOT, 'bin/template/www', 'manifest.json'),
+                   path.join(project_path,'platform_www'));
+
     return Promise.resolve();
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message