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
eaaca91f
Unverified
Commit
eaaca91f
authored
Mar 12, 2020
by
Steven Vachon
Committed by
GitHub
Mar 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@grafana/e2e: cherry picked
4fecf5a7
(#22739)
parent
a551cd24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
packages/grafana-e2e/cypress/plugins/typescriptPreprocessor.js
+14
-0
packages/grafana-e2e/cypress/tsconfig.json
+3
-1
No files found.
packages/grafana-e2e/cypress/plugins/typescriptPreprocessor.js
View file @
eaaca91f
const
{
resolve
}
=
require
(
'path'
);
const
wp
=
require
(
'@cypress/webpack-preprocessor'
);
const
anyNodeModules
=
/node_modules/
;
const
packageRoot
=
resolve
(
`
${
__dirname
}
/../../`
);
const
packageModules
=
`
${
packageRoot
}
/node_modules`
;
const
webpackOptions
=
{
module
:
{
rules
:
[
{
include
:
modulePath
=>
{
if
(
!
anyNodeModules
.
test
(
modulePath
))
{
// Is a file within the project
return
true
;
}
else
{
// Is a file within this package
return
modulePath
.
startsWith
(
packageRoot
)
&&
!
modulePath
.
startsWith
(
packageModules
);
}
},
test
:
/
\.
ts$/
,
use
:
[
{
...
...
packages/grafana-e2e/cypress/tsconfig.json
View file @
eaaca91f
{
"compilerOptions"
:
{
"declaration"
:
false
,
"module"
:
"commonjs"
,
"types"
:
[
"cypress"
]
},
"extends"
:
"
../tsconfig.json
"
,
"extends"
:
"
@grafana/tsconfig
"
,
"include"
:
[
"**/*.ts"
]
}
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