Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
8a22111a
Unverified
Commit
8a22111a
authored
Sep 25, 2020
by
William Assis
Committed by
GitHub
Sep 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Toolkit: Add --coverage flag to plugin build command (#27743)
* Add --coverage option to build script * Update README
parent
dde5b724
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
packages/grafana-toolkit/README.md
+4
-0
packages/grafana-toolkit/src/cli/index.ts
+2
-1
No files found.
packages/grafana-toolkit/README.md
View file @
8a22111a
...
@@ -100,6 +100,10 @@ Available options:
...
@@ -100,6 +100,10 @@ Available options:
This command creates a production-ready build of your plugin.
This command creates a production-ready build of your plugin.
Available options:
-
`--coverage`
- Reports code coverage after the test step of the build.
## FAQ
## FAQ
### Which version of grafana-toolkit should I use?
### Which version of grafana-toolkit should I use?
...
...
packages/grafana-toolkit/src/cli/index.ts
View file @
8a22111a
...
@@ -139,8 +139,9 @@ export const run = (includeInternalScripts = false) => {
...
@@ -139,8 +139,9 @@ export const run = (includeInternalScripts = false) => {
program
program
.
command
(
'plugin:build'
)
.
command
(
'plugin:build'
)
.
description
(
'Prepares plugin dist package'
)
.
description
(
'Prepares plugin dist package'
)
.
option
(
'--coverage'
,
'Run code coverage'
,
false
)
.
action
(
async
cmd
=>
{
.
action
(
async
cmd
=>
{
await
execTask
(
pluginBuildTask
)({
coverage
:
fals
e
,
silent
:
true
});
await
execTask
(
pluginBuildTask
)({
coverage
:
cmd
.
coverag
e
,
silent
:
true
});
});
});
program
program
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment