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
cc638e81
Unverified
Commit
cc638e81
authored
Mar 02, 2020
by
Ryan McKinley
Committed by
GitHub
Mar 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Toolkit: don't clean dist folder before build (#22521)
parent
2483efb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
packages/grafana-toolkit/src/cli/tasks/plugin.build.ts
+0
-1
packages/grafana-toolkit/src/cli/tasks/plugin.ci.ts
+6
-1
No files found.
packages/grafana-toolkit/src/cli/tasks/plugin.build.ts
View file @
cc638e81
...
...
@@ -109,7 +109,6 @@ export const lintPlugin = useSpinner<Fixable>('Linting', async ({ fix } = {}) =>
});
export
const
pluginBuildRunner
:
TaskRunner
<
PluginBuildOptions
>
=
async
({
coverage
})
=>
{
await
clean
();
await
prepare
();
await
lintPlugin
({
fix
:
false
});
await
testPlugin
({
updateSnapshot
:
false
,
coverage
,
watch
:
false
});
...
...
packages/grafana-toolkit/src/cli/tasks/plugin.ci.ts
View file @
cc638e81
...
...
@@ -25,6 +25,9 @@ import { runEndToEndTests } from '../../plugins/e2e/launcher';
import
{
getEndToEndSettings
}
from
'../../plugins/index'
;
import
{
manifestTask
}
from
'./manifest'
;
import
{
execTask
}
from
'../utils/execTask'
;
import
rimrafCallback
from
'rimraf'
;
import
{
promisify
}
from
'util'
;
const
rimraf
=
promisify
(
rimrafCallback
);
export
interface
PluginCIOptions
{
backend
?:
boolean
;
...
...
@@ -46,7 +49,9 @@ export interface PluginCIOptions {
const
buildPluginRunner
:
TaskRunner
<
PluginCIOptions
>
=
async
({
backend
})
=>
{
const
start
=
Date
.
now
();
const
workDir
=
getJobFolder
();
await
execa
(
'rimraf'
,
[
workDir
]);
await
rimraf
(
`
${
process
.
cwd
()}
/dist`
);
await
rimraf
(
workDir
);
fs
.
mkdirSync
(
workDir
);
if
(
backend
)
{
...
...
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