cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [12/29] git commit: CB-7330 Don't run check_reqs for bin/create.
Date Thu, 02 Oct 2014 18:17:46 GMT
CB-7330 Don't run check_reqs for bin/create.

The create / update script doesn't require any dependencies, so we
shouldn't fail without them.


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

Branch: refs/heads/master
Commit: d31dbe81d47d8ada7731337dbaaaf7bb93db0d07
Parents: 97218ce
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Sep 10 12:42:37 2014 -0400
Committer: Prabhjot Singh <prabhjos@amazon.com>
Committed: Wed Sep 17 15:00:51 2014 +0530

----------------------------------------------------------------------
 bin/lib/create.js | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/d31dbe81/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 870f76c..8660afe 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -260,10 +260,6 @@ exports.createProject = function(project_path, package_name, project_name,
proje
     return validatePackageName(package_name)
     .then(function() {
         validateProjectName(project_name);
-    })
-    // Check that requirements are met and proper targets are installed
-    .then(function() {
-        return check_reqs.run();
     }).then(function() {
         // Log the given values for the project
         console.log('Creating Cordova project for the amazon-fireos platform:');
@@ -334,8 +330,7 @@ function extractProjectNameFromManifest(projectPath) {
 // Returns a promise.
 exports.updateProject = function(projectPath, shared) {
     var newVersion = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
-    // Check that requirements are met and proper targets are installed
-    return check_reqs.run()
+    return Q()
     .then(function() {
         var projectName = extractProjectNameFromManifest(projectPath);
         var target_api = check_reqs.get_target();


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


Mime
View raw message