cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From za...@apache.org
Subject [1/4] git commit: cordova.js needs to be copied to platform www
Date Fri, 27 Jun 2014 12:24:52 GMT
Repository: cordova-firefoxos
Updated Branches:
  refs/heads/master 6b34cf410 -> c5ec8d0bd


cordova.js needs to be copied to platform www


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

Branch: refs/heads/master
Commit: ee650b02db7f0f511e074e074c3dc81367025d28
Parents: 0b0b4d2
Author: Rodrigo Silveira <rodrigos@outlook.com>
Authored: Tue Jun 24 16:13:42 2014 -0700
Committer: Piotr Zalewa <piotr@zalewa.info>
Committed: Fri Jun 27 12:41:01 2014 +0200

----------------------------------------------------------------------
 bin/lib/create.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/ee650b02/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 48fb2e8..bc7b1c9 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -26,7 +26,6 @@ var fs = require('fs'),
     ROOT    = path.join(__dirname, '..', '..'),
     check_reqs = require('./check_reqs');
 
-
 exports.createProject = function(project_path,package_name,project_name){
     var VERSION = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8');
     
@@ -61,13 +60,16 @@ exports.createProject = function(project_path,package_name,project_name){
 
     //copy check_reqs file
     shjs.cp( path.join(ROOT, 'bin', 'lib', 'check_reqs.js'), path.join(project_path,'cordova',
'lib'));
-    
+
     //copy cordova directory
     shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'cordova'), project_path);
 
     //copy platform_www to project folder
     shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'platform_www'), project_path);
 
+    //copy cordova js file
+    shjs.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'), path.join(project_path,'platform_www'));
+
     [
         'run',
         'build',
@@ -76,4 +78,4 @@ exports.createProject = function(project_path,package_name,project_name){
     ].forEach(function(f) { 
          shjs.chmod(755, path.join(project_path, 'cordova', f));
     });
-}
+};


Mime
View raw message