You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2017/05/25 20:38:29 UTC

[09/25] cordova-browser git commit: copy template www contents

copy template www contents


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

Branch: refs/heads/master
Commit: 22b8a2532076095e3da01133003e27c4cbc8836b
Parents: 4a07e78
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Apr 13 18:03:34 2017 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Apr 13 18:03:34 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/22b8a253/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index d1000ed..fcbfc7f 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -63,9 +63,6 @@ module.exports.createProject = function(project_path,package_name,project_name){
         return;
     }
 
-    //copy template directory ( recursive )
-    //shell.cp('-r', path.join(ROOT, 'bin/templates/project/www'), project_path);
-
     //create cordova/lib if it does not exist yet
     if (!fs.existsSync(path.join(project_path,'cordova/lib'))) {
         shell.mkdir('-p', path.join(project_path,'cordova/lib'));
@@ -78,10 +75,14 @@ module.exports.createProject = function(project_path,package_name,project_name){
     shell.cp( path.join(ROOT, 'bin/lib/check_reqs.js'), path.join(project_path,'cordova/lib'));
 
     //copy cordova js file
-    shell.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'), path.join(project_path,'www'));
+    shell.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'),
+                   path.join(project_path,'www'));
+    //copy template directory ( recursive )
+    shell.cp('-r', path.join(ROOT, 'bin/template/www'),  project_path);
 
     //copy cordova-js-src directory
-    shell.cp('-rf', path.join(ROOT, 'cordova-js-src'), path.join(project_path, 'platform_www'));
+    shell.cp('-rf', path.join(ROOT, 'cordova-js-src'),
+                    path.join(project_path, 'platform_www'));
 
     //copy cordova directory
     shell.cp('-r', path.join(ROOT, 'bin/template/cordova'), project_path);


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