mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
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.
This commit is contained in:
parent
0e78dc35d8
commit
3b99760a42
@ -226,10 +226,6 @@ exports.createProject = function(project_path, package_name, project_name, proje
|
|||||||
return validatePackageName(package_name)
|
return validatePackageName(package_name)
|
||||||
.then(function() {
|
.then(function() {
|
||||||
validateProjectName(project_name);
|
validateProjectName(project_name);
|
||||||
})
|
|
||||||
// Check that requirements are met and proper targets are installed
|
|
||||||
.then(function() {
|
|
||||||
return check_reqs.run();
|
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
// Log the given values for the project
|
// Log the given values for the project
|
||||||
console.log('Creating Cordova project for the Android platform:');
|
console.log('Creating Cordova project for the Android platform:');
|
||||||
@ -305,8 +301,7 @@ function extractProjectNameFromManifest(projectPath) {
|
|||||||
// Returns a promise.
|
// Returns a promise.
|
||||||
exports.updateProject = function(projectPath, shared) {
|
exports.updateProject = function(projectPath, shared) {
|
||||||
var newVersion = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
|
var newVersion = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
|
||||||
// Check that requirements are met and proper targets are installed
|
return Q()
|
||||||
return check_reqs.run()
|
|
||||||
.then(function() {
|
.then(function() {
|
||||||
var projectName = extractProjectNameFromManifest(projectPath);
|
var projectName = extractProjectNameFromManifest(projectPath);
|
||||||
var target_api = check_reqs.get_target();
|
var target_api = check_reqs.get_target();
|
||||||
|
Loading…
Reference in New Issue
Block a user