|
|
@ -137,21 +137,21 @@ function parseArgv() { |
|
|
|
const NamedArgs = { |
|
|
|
const NamedArgs = { |
|
|
|
BuildType: 'build-type', |
|
|
|
BuildType: 'build-type', |
|
|
|
LintFenceFiles: 'lint-fence-files', |
|
|
|
LintFenceFiles: 'lint-fence-files', |
|
|
|
OmitLockdown: 'omit-lockdown', |
|
|
|
Lockdown: 'lockdown', |
|
|
|
SkipStats: 'skip-stats', |
|
|
|
SkipStats: 'skip-stats', |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const argv = minimist(process.argv.slice(2), { |
|
|
|
const argv = minimist(process.argv.slice(2), { |
|
|
|
boolean: [ |
|
|
|
boolean: [ |
|
|
|
NamedArgs.LintFenceFiles, |
|
|
|
NamedArgs.LintFenceFiles, |
|
|
|
NamedArgs.OmitLockdown, |
|
|
|
NamedArgs.Lockdown, |
|
|
|
NamedArgs.SkipStats, |
|
|
|
NamedArgs.SkipStats, |
|
|
|
], |
|
|
|
], |
|
|
|
string: [NamedArgs.BuildType], |
|
|
|
string: [NamedArgs.BuildType], |
|
|
|
default: { |
|
|
|
default: { |
|
|
|
[NamedArgs.BuildType]: BuildType.main, |
|
|
|
[NamedArgs.BuildType]: BuildType.main, |
|
|
|
[NamedArgs.LintFenceFiles]: true, |
|
|
|
[NamedArgs.LintFenceFiles]: true, |
|
|
|
[NamedArgs.OmitLockdown]: false, |
|
|
|
[NamedArgs.Lockdown]: true, |
|
|
|
[NamedArgs.SkipStats]: false, |
|
|
|
[NamedArgs.SkipStats]: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
@ -183,7 +183,7 @@ function parseArgv() { |
|
|
|
buildType, |
|
|
|
buildType, |
|
|
|
entryTask, |
|
|
|
entryTask, |
|
|
|
isLavaMoat: process.argv[0].includes('lavamoat'), |
|
|
|
isLavaMoat: process.argv[0].includes('lavamoat'), |
|
|
|
shouldIncludeLockdown: argv[NamedArgs.OmitLockdown], |
|
|
|
shouldIncludeLockdown: argv[NamedArgs.Lockdown], |
|
|
|
shouldLintFenceFiles, |
|
|
|
shouldLintFenceFiles, |
|
|
|
skipStats: argv[NamedArgs.SkipStats], |
|
|
|
skipStats: argv[NamedArgs.SkipStats], |
|
|
|
}; |
|
|
|
}; |
|
|
|