mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Toolkit: Add --coverage flag to plugin build command (#27743)
* Add --coverage option to build script * Update README
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user