Skip to content

Commit

Permalink
chore: applied lint to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Dec 17, 2019
1 parent 4ad25a2 commit 6467ac8
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 46 deletions.
10 changes: 5 additions & 5 deletions bin/create
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ var ConfigParser = require('cordova-common').ConfigParser;
var Api = require('./templates/scripts/cordova/Api');

var argv = require('nopt')({
'help': Boolean,
'cli': Boolean,
'shared': Boolean, // alias for --link
'link': Boolean
}, { 'd': '--verbose' });
help: Boolean,
cli: Boolean,
shared: Boolean, // alias for --link
link: Boolean
}, { d: '--verbose' });

var projectPath = argv.argv.remain[0];

Expand Down
34 changes: 17 additions & 17 deletions bin/templates/scripts/cordova/build
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >=

// Parse arguments
var buildOpts = nopt({
'verbose': Boolean,
'silent': Boolean,
'archs': String,
'debug': Boolean,
'release': Boolean,
'device': Boolean,
'emulator': Boolean,
'codeSignIdentity': String,
'codeSignResourceRules': String,
'provisioningProfile': String,
'automaticProvisioning': Boolean,
'developmentTeam': String,
'packageType': String,
'buildConfig': String,
'buildFlag': [String, Array],
'noSign': Boolean
}, { '-r': '--release', 'd': '--verbose' }, args);
verbose: Boolean,
silent: Boolean,
archs: String,
debug: Boolean,
release: Boolean,
device: Boolean,
emulator: Boolean,
codeSignIdentity: String,
codeSignResourceRules: String,
provisioningProfile: String,
automaticProvisioning: Boolean,
developmentTeam: String,
packageType: String,
buildConfig: String,
buildFlag: [String, Array],
noSign: Boolean
}, { '-r': '--release', d: '--verbose' }, args);

// Make buildOptions compatible with PlatformApi build method spec
buildOpts.argv = buildOpts.argv.remain;
Expand Down
6 changes: 3 additions & 3 deletions bin/templates/scripts/cordova/clean
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >=

// 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;
Expand Down
34 changes: 17 additions & 17 deletions bin/templates/scripts/cordova/run
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >=

// Parse arguments (includes build params as well)
var opts = nopt({
'verbose': Boolean,
'silent': Boolean,
'debug': Boolean,
'release': Boolean,
'nobuild': Boolean,
'archs': String,
'list': Boolean,
'device': Boolean,
'emulator': Boolean,
'target': String,
'codeSignIdentity': String,
'codeSignResourceRules': String,
'provisioningProfile': String,
'automaticProvisioning': Boolean,
'buildConfig': String,
'noSign': Boolean
}, { 'd': '--verbose' }, args);
verbose: Boolean,
silent: Boolean,
debug: Boolean,
release: Boolean,
nobuild: Boolean,
archs: String,
list: Boolean,
device: Boolean,
emulator: Boolean,
target: String,
codeSignIdentity: String,
codeSignResourceRules: String,
provisioningProfile: String,
automaticProvisioning: Boolean,
buildConfig: String,
noSign: Boolean
}, { d: '--verbose' }, args);

// Make options compatible with PlatformApi build method spec
opts.argv = opts.argv.remain;
Expand Down
8 changes: 4 additions & 4 deletions bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
var path = require('path');
var Api = require('./templates/scripts/cordova/Api');
var args = require('nopt')({
'link': Boolean,
'shared': Boolean, // alias for --link
'help': Boolean
}, { 'd': '--verbose' });
link: Boolean,
shared: Boolean, // alias for --link
help: Boolean
}, { d: '--verbose' });

if (args.help || args.argv.remain.length === 0) {
console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'update')) + ' <path_to_project> [--link]');
Expand Down

0 comments on commit 6467ac8

Please sign in to comment.