diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
| commit | 22721a013bdd10d5eb395ba18453585f5f3f1f7f (patch) | |
| tree | 5a920e31d6026ed5dc55265e5fd057febccc50e3 /StoneIsland/platforms/ios/cordova/clean | |
| parent | d22d51a1ae49680015326857360eb699f31efced (diff) | |
rebuild the ios platform and the plugins
Diffstat (limited to 'StoneIsland/platforms/ios/cordova/clean')
| -rwxr-xr-x | StoneIsland/platforms/ios/cordova/clean | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/StoneIsland/platforms/ios/cordova/clean b/StoneIsland/platforms/ios/cordova/clean index 56665c48..f36a648e 100755 --- a/StoneIsland/platforms/ios/cordova/clean +++ b/StoneIsland/platforms/ios/cordova/clean @@ -20,19 +20,18 @@ */ var Api = require('./Api'); -var path = require('path'); var nopt = require('nopt'); -if(['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= 0) { +if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= 0) { console.log('Cleans the project directory.'); process.exit(0); } // Do some basic argument parsing var opts = nopt({ - 'verbose' : Boolean, - 'silent' : Boolean -}, { 'd' : '--verbose' }); + verbose: Boolean, + silent: Boolean +}, { d: '--verbose' }); // Make buildOptions compatible with PlatformApi clean method spec opts.argv = opts.argv.original; @@ -42,9 +41,12 @@ opts.noPrepare = true; require('./loggingHelper').adjustLoggerLevel(opts); -new Api().clean(opts).done(function() { - console.log('** CLEAN SUCCEEDED **'); -}, function(err) { - console.error(err); - process.exit(2); -}); +new Api().clean(opts).then( + () => { + console.log('** CLEAN SUCCEEDED **'); + }, + err => { + console.error(err); + process.exit(2); + } +); |
