-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from poetic/cordova-init-fix
fix cordova-init create project failure and platform option
- Loading branch information
Showing
4 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
'use strict'; | ||
|
||
var cordova = require('./cordova'); | ||
var runCommand = require('../utils/run-command'); | ||
var path = require('path'); | ||
|
||
module.exports = function(project) { | ||
var config = project.cordovaConfig; | ||
var config = project.cordovaConfig; | ||
var command = 'cordova create cordova ' + config.id + ' ' + config.name; | ||
|
||
var args = ['create', 'cordova', config.id, config.name]; | ||
|
||
return cordova(args, project); | ||
return runCommand(command, 'Creating Cordova project', { | ||
cwd: project.root | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters