|
10 | 10 | "types"
|
11 | 11 | ],
|
12 | 12 | "scripts": {
|
13 |
| - "test": "npm run lint", |
| 13 | + "test": "npm run lint && npm run test:e2e", |
14 | 14 | "lint": "xo",
|
15 | 15 | "build": "bili --format esm,cjs,esm-min --minimal",
|
16 | 16 | "prepublishOnly": "npm run build",
|
17 | 17 | "example": "poi example/index.js --serve --jsx vue",
|
18 |
| - "commit": "git-cz" |
| 18 | + "commit": "git-cz", |
| 19 | + "cy:run": "cypress run", |
| 20 | + "cy:open": "cypress open", |
| 21 | + "test:e2e": "run-p --race example cy:run" |
19 | 22 | },
|
20 | 23 | "repository": {
|
21 | 24 | "url": "egoist/vue-router-prefetch",
|
|
27 | 30 | "babel-eslint": "^10.0.1",
|
28 | 31 | "bili": "^4.0.9",
|
29 | 32 | "commitizen": "^3.0.5",
|
| 33 | + "cypress": "^3.3.2", |
30 | 34 | "cz-conventional-changelog": "^2.1.0",
|
31 | 35 | "eslint-config-prettier": "^3.3.0",
|
32 | 36 | "eslint-config-rem": "^4.0.0",
|
| 37 | + "eslint-plugin-cypress": "^2.2.1", |
33 | 38 | "eslint-plugin-prettier": "^3.0.0",
|
34 | 39 | "eslint-plugin-vue": "^5.1.0",
|
35 | 40 | "husky": "^1.0.0-rc.13",
|
36 | 41 | "lint-staged": "^7.2.0",
|
| 42 | + "npm-run-all": "^4.1.5", |
37 | 43 | "poi": "^12.4.6",
|
38 | 44 | "prettier": "^1.15.2",
|
39 | 45 | "semantic-release": "^15.13.3",
|
|
54 | 60 | "plugin:prettier/recommended"
|
55 | 61 | ],
|
56 | 62 | "envs": [
|
57 |
| - "browser" |
| 63 | + "browser", |
| 64 | + "cypress/globals" |
58 | 65 | ],
|
59 | 66 | "rules": {
|
60 | 67 | "no-new": "off",
|
61 |
| - "no-unused-expressions": "off" |
62 |
| - } |
| 68 | + "no-unused-expressions": "off", |
| 69 | + "import/no-unassigned-import": "off" |
| 70 | + }, |
| 71 | + "plugins": [ |
| 72 | + "cypress" |
| 73 | + ] |
63 | 74 | },
|
64 | 75 | "husky": {
|
65 | 76 | "hooks": {
|
|
0 commit comments