Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
949151dc
Commit
949151dc
authored
Nov 25, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add verification devDependencies
parent
9416cd7d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
.eslintignore
.eslintignore
+2
-0
.eslintrc.js
.eslintrc.js
+4
-1
jest-puppeteer.config.js
jest-puppeteer.config.js
+1
-0
package.json
package.json
+8
-8
src/e2e/userLayout.e2e.js
src/e2e/userLayout.e2e.js
+0
-5
No files found.
.eslintignore
View file @
949151dc
/functions/mock
/tests/*
./*
\ No newline at end of file
.eslintrc.js
View file @
949151dc
...
...
@@ -20,7 +20,10 @@ module.exports = {
'
react/forbid-prop-types
'
:
0
,
'
react/jsx-one-expression-per-line
'
:
0
,
'
import/no-unresolved
'
:
[
2
,
{
ignore
:
[
'
^@/
'
,
'
^umi/
'
]
}],
'
import/no-extraneous-dependencies
'
:
[
2
,
{
optionalDependencies
:
true
}],
'
import/no-extraneous-dependencies
'
:
[
2
,
{
optionalDependencies
:
true
,
devDependencies
:
false
},
],
'
jsx-a11y/no-noninteractive-element-interactions
'
:
0
,
'
jsx-a11y/click-events-have-key-events
'
:
0
,
'
jsx-a11y/no-static-element-interactions
'
:
0
,
...
...
jest-puppeteer.config.js
View file @
949151dc
// ps https://github.com/GoogleChrome/puppeteer/issues/3120
module
.
exports
=
{
launch
:
{
headless
:
false
,
args
:
[
'
--disable-gpu
'
,
'
--disable-dev-shm-usage
'
,
...
...
package.json
View file @
949151dc
...
...
@@ -31,8 +31,8 @@
},
"dependencies"
:
{
"
@babel/runtime
"
:
"
^7.1.5
"
,
"
antd
"
:
"
^3.10.
8
"
,
"
bizcharts
"
:
"
^3.
3
.0
"
,
"
antd
"
:
"
^3.10.
9
"
,
"
bizcharts
"
:
"
^3.
4
.0
"
,
"
bizcharts-plugin-slider
"
:
"
^2.1.1-beta.1
"
,
"
classnames
"
:
"
^2.2.6
"
,
"
dva
"
:
"
^2.4.0
"
,
...
...
@@ -47,7 +47,7 @@
"
omit.js
"
:
"
^1.0.0
"
,
"
path-to-regexp
"
:
"
^2.4.0
"
,
"
prop-types
"
:
"
^15.5.10
"
,
"
qs
"
:
"
^6.
5.2
"
,
"
qs
"
:
"
^6.
6.0
"
,
"
rc-animate
"
:
"
^2.4.4
"
,
"
react
"
:
"
^16.5.1
"
,
"
react-container-query
"
:
"
^0.11.0
"
,
...
...
@@ -60,8 +60,8 @@
},
"devDependencies"
:
{
"
@antv/data-set
"
:
"
^0.10.0
"
,
"
@types/react
"
:
"
^16.7.
6
"
,
"
@types/react-dom
"
:
"
^16.0.
9
"
,
"
@types/react
"
:
"
^16.7.
7
"
,
"
@types/react-dom
"
:
"
^16.0.
10
"
,
"
antd-pro-merge-less
"
:
"
^0.2.0
"
,
"
antd-theme-webpack-plugin
"
:
"
^1.1.8
"
,
"
babel-eslint
"
:
"
^10.0.1
"
,
...
...
@@ -78,14 +78,14 @@
"
eslint-plugin-markdown
"
:
"
^1.0.0-beta.6
"
,
"
eslint-plugin-react
"
:
"
^7.11.1
"
,
"
gh-pages
"
:
"
^2.0.1
"
,
"
husky
"
:
"
^1.
1.2
"
,
"
husky
"
:
"
^1.
2.0
"
,
"
jest-puppeteer
"
:
"
^3.5.1
"
,
"
lint-staged
"
:
"
^8.
0.4
"
,
"
lint-staged
"
:
"
^8.
1.0
"
,
"
merge-umi-mock-data
"
:
"
^0.0.3
"
,
"
mockjs
"
:
"
^1.0.1-beta3
"
,
"
prettier
"
:
"
1.15.2
"
,
"
pro-download
"
:
"
^1.0.1
"
,
"
stylelint
"
:
"
^9.
4
.0
"
,
"
stylelint
"
:
"
^9.
8
.0
"
,
"
stylelint-config-prettier
"
:
"
^4.0.0
"
,
"
stylelint-config-standard
"
:
"
^18.0.0
"
,
"
tslint
"
:
"
^5.10.0
"
,
...
...
src/e2e/userLayout.e2e.js
View file @
949151dc
...
...
@@ -12,9 +12,6 @@ function formatter(data) {
}
describe
(
'
Homepage
'
,
()
=>
{
let
browser
;
let
page
;
const
testPage
=
path
=>
async
()
=>
{
await
page
.
goto
(
`
${
BASE_URL
}${
path
}
`
);
await
page
.
waitForSelector
(
'
footer
'
,
{
...
...
@@ -32,6 +29,4 @@ describe('Homepage', () => {
formatter
(
RouterConfig
[
0
].
routes
).
forEach
(
route
=>
{
fit
(
`test pages
${
route
}
`
,
testPage
(
route
));
});
afterAll
(()
=>
browser
.
close
());
});
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