Repository: cordova-browser Updated Branches: refs/heads/master 61f71c769 -> 606f407d2
Removed console.log that dumps all over test output. Project: http://git-wip-us.apache.org/repos/asf/cordova-browser/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-browser/commit/606f407d Tree: http://git-wip-us.apache.org/repos/asf/cordova-browser/tree/606f407d Diff: http://git-wip-us.apache.org/repos/asf/cordova-browser/diff/606f407d Branch: refs/heads/master Commit: 606f407d2a0d1eb3e33d7e0abe7c547343139037 Parents: 61f71c7 Author: Jesse MacFadyen <[email protected]> Authored: Thu Mar 2 14:32:48 2017 -0800 Committer: Jesse MacFadyen <[email protected]> Committed: Thu Mar 2 14:32:48 2017 -0800 ---------------------------------------------------------------------- bin/lib/create.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/606f407d/bin/lib/create.js ---------------------------------------------------------------------- diff --git a/bin/lib/create.js b/bin/lib/create.js index 9b6e0ff..2f77cc2 100644 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -18,7 +18,7 @@ * specific language governing permissions and limitations * under the License. */ - + var fs = require('fs'), shjs = require('shelljs'), Q = require ('q'), @@ -28,9 +28,9 @@ var fs = require('fs'), check_reqs = require('./check_reqs'); module.exports.createProject = function(project_path,package_name,project_name){ - + var VERSION = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8'); - + // Set default values for path, package and name project_path = typeof project_path !== 'undefined' ? project_path : "CordovaExample"; @@ -39,15 +39,13 @@ module.exports.createProject = function(project_path,package_name,project_name){ console.error('Project already exists! Delete and recreate'); process.exit(2); } - + // Check that requirements are met and proper targets are installed if (!check_reqs.run()) { console.error('Please make sure you meet the software requirements in order to build a browser cordova project'); process.exit(2); } - console.log('Creating Browser project. Path: ' + path.relative(process.cwd(),project_path)); - //copy template directory shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'www'), project_path); @@ -61,7 +59,7 @@ module.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 js file shjs.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'), path.join(project_path,'www')); @@ -69,13 +67,13 @@ module.exports.createProject = function(project_path,package_name,project_name){ shjs.cp('-rf', path.join(ROOT, 'cordova-js-src'), path.join(project_path, 'platform_www')); //copy cordova directory - shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'cordova'), project_path); + shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'cordova'), project_path); [ 'run', 'build', 'clean', 'version', - ].forEach(function(f) { + ].forEach(function(f) { shjs.chmod(755, path.join(project_path, 'cordova', f)); }); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
