Skip to content

Commit

Permalink
fix(cordova): use cordova command for now
Browse files Browse the repository at this point in the history
To be safe, since there were issues running ionic project commands
against uninitialized projects.
  • Loading branch information
tlancina committed Mar 28, 2016
1 parent 52f1a8f commit f469d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ionic/cordova.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ IonicTask.prototype.run = function(ionic, argv) {
var notInstalledMsg = ['• You\'re trying to build for ', runPlatform, ', but don\'t have the platform installed yet.'].join('').yellow,
installingMsg = ['∆ Installing ', runPlatform, ' for you.'].join('').blue,
installedMessage = ['√ Installed platform ', runPlatform].join('').green,
installCmd = 'ionic platform add ' + runPlatform;
installCmd = 'cordova platform add ' + runPlatform;
Logging.logger.info(notInstalledMsg);
Logging.logger.info(installingMsg);
// Logging.logger.info(installCmd);
Expand Down Expand Up @@ -98,7 +98,7 @@ IonicTask.prototype.run = function(ionic, argv) {

plugins.forEach(function(plugin) {
Logging.logger.info(['Installing ', plugin].join('').blue);
shelljs.exec('ionic plugin add ' + plugin);
shelljs.exec('cordova plugin add --save' + plugin);
});
})
.then(function() {
Expand Down

0 comments on commit f469d47

Please sign in to comment.