|
|
|
@ -138,10 +138,11 @@ export const run = (includeInternalScripts = false) => { |
|
|
|
|
|
|
|
|
|
program |
|
|
|
|
.command('plugin:build') |
|
|
|
|
.option('--maxJestWorkers <num>|<string>', 'Limit number of Jest workers spawned') |
|
|
|
|
.description('Prepares plugin dist package') |
|
|
|
|
.option('--coverage', 'Run code coverage', false) |
|
|
|
|
.action(async cmd => { |
|
|
|
|
await execTask(pluginBuildTask)({ coverage: cmd.coverage, silent: true }); |
|
|
|
|
await execTask(pluginBuildTask)({ coverage: cmd.coverage, silent: true, maxJestWorkers: cmd.maxJestWorkers }); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
program |
|
|
|
@ -164,6 +165,7 @@ export const run = (includeInternalScripts = false) => { |
|
|
|
|
.option('--watch', 'Run tests in interactive watch mode') |
|
|
|
|
.option('--testPathPattern <regex>', 'Run only tests with a path that matches the regex') |
|
|
|
|
.option('--testNamePattern <regex>', 'Run only tests with a name that matches the regex') |
|
|
|
|
.option('--maxWorkers <num>|<string>', 'Limit number of workers spawned') |
|
|
|
|
.description('Executes plugin tests') |
|
|
|
|
.action(async cmd => { |
|
|
|
|
await execTask(pluginTestTask)({ |
|
|
|
@ -172,6 +174,7 @@ export const run = (includeInternalScripts = false) => { |
|
|
|
|
watch: !!cmd.watch, |
|
|
|
|
testPathPattern: cmd.testPathPattern, |
|
|
|
|
testNamePattern: cmd.testNamePattern, |
|
|
|
|
maxWorkers: cmd.maxWorkers, |
|
|
|
|
silent: true, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -179,10 +182,12 @@ export const run = (includeInternalScripts = false) => { |
|
|
|
|
program |
|
|
|
|
.command('plugin:ci-build') |
|
|
|
|
.option('--finish', 'move all results to the jobs folder', false) |
|
|
|
|
.option('--maxJestWorkers <num>|<string>', 'Limit number of Jest workers spawned') |
|
|
|
|
.description('Build the plugin, leaving results in /dist and /coverage') |
|
|
|
|
.action(async cmd => { |
|
|
|
|
await execTask(ciBuildPluginTask)({ |
|
|
|
|
finish: cmd.finish, |
|
|
|
|
maxJestWorkers: cmd.maxJestWorkers, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|