mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: Add --coverage flag to plugin build command (#27743)
* Add --coverage option to build script * Update README
This commit is contained in:
parent
dde5b724e8
commit
8a22111a8e
@ -100,6 +100,10 @@ Available options:
|
||||
|
||||
This command creates a production-ready build of your plugin.
|
||||
|
||||
Available options:
|
||||
|
||||
- `--coverage` - Reports code coverage after the test step of the build.
|
||||
|
||||
## FAQ
|
||||
|
||||
### Which version of grafana-toolkit should I use?
|
||||
|
@ -139,8 +139,9 @@ export const run = (includeInternalScripts = false) => {
|
||||
program
|
||||
.command('plugin:build')
|
||||
.description('Prepares plugin dist package')
|
||||
.option('--coverage', 'Run code coverage', false)
|
||||
.action(async cmd => {
|
||||
await execTask(pluginBuildTask)({ coverage: false, silent: true });
|
||||
await execTask(pluginBuildTask)({ coverage: cmd.coverage, silent: true });
|
||||
});
|
||||
|
||||
program
|
||||
|
Loading…
Reference in New Issue
Block a user