|
17 | 17 | "redux-thunk": "^2.3.0"
|
18 | 18 | },
|
19 | 19 | "scripts": {
|
20 |
| - "start": "REACT_APP_NODE_ENV=LOCAL react-scripts start", |
21 | 20 | "build": "react-scripts build",
|
22 |
| - "preserve": "REACT_APP_NODE_ENV=LOCAL yarn build", |
23 |
| - "serve": "serve --cors --debug -p 3000 --single build", |
24 |
| - "test": "react-scripts test --env=jsdom", |
25 |
| - "e2e:dev": "concurrently -k -n \"app,mock,e2e\" \"yarn start\" \"yarn e2e:mock\" \"cypress open\"", |
26 |
| - "e2e:prod": "concurrently -k -s first -n \"app,mock,e2e\" \"yarn serve\" \"yarn e2e:mock\" \"yarn e2e:run\"", |
27 | 21 | "e2e": "concurrently -k -s first -n \"app,mock,e2e\" \"BROWSER=none yarn start\" \"yarn e2e:mock\" \"yarn e2e:run\"",
|
| 22 | + "e2e:dev": "concurrently -k -n \"app,mock,e2e\" \"yarn start\" \"yarn e2e:mock\" \"cypress open\"", |
28 | 23 | "e2e:mock": "node ./e2e/fixtures/server.js",
|
| 24 | + "e2e:prod": "concurrently -k -s first -n \"app,mock,e2e\" \"yarn serve\" \"yarn e2e:mock\" \"yarn e2e:run\"", |
29 | 25 | "e2e:run": "wait-on -l http-get://localhost:3000 && cypress run",
|
| 26 | + "eject": "react-scripts eject", |
30 | 27 | "lint": "eslint src --max-warnings 0 && prettier --config .prettierrc --check 'src/**/*.js'",
|
31 | 28 | "lint:fix": "eslint --fix src",
|
| 29 | + "prepare": "husky install", |
32 | 30 | "prettier": "prettier --config .prettierrc --write 'src/**/*.js'",
|
33 |
| - "eject": "react-scripts eject" |
| 31 | + "preserve": "REACT_APP_NODE_ENV=LOCAL yarn build", |
| 32 | + "serve": "serve --cors --debug -p 3000 --single build", |
| 33 | + "start": "REACT_APP_NODE_ENV=LOCAL react-scripts start", |
| 34 | + "test": "react-scripts test --env=jsdom" |
34 | 35 | },
|
35 | 36 | "eslintConfig": {
|
36 | 37 | "extends": [
|
|
50 | 51 | ]
|
51 | 52 | }
|
52 | 53 | },
|
53 |
| - "husky": { |
54 |
| - "hooks": { |
55 |
| - "pre-commit": "lint-staged" |
56 |
| - } |
57 |
| - }, |
58 | 54 | "lint-staged": {
|
59 | 55 | "*.js": [
|
60 | 56 | "pretty-quick --staged",
|
61 | 57 | "eslint src --fix",
|
62 |
| - "prettier", |
63 |
| - "git add" |
| 58 | + "prettier" |
64 | 59 | ]
|
65 | 60 | },
|
66 | 61 | "devDependencies": {
|
67 | 62 | "@testing-library/cypress": "^7.0.7",
|
68 |
| - "concurrently": "^5.0.0", |
| 63 | + "concurrently": "^7.4.0", |
69 | 64 | "cors": "^2.8.5",
|
70 | 65 | "cypress": "^3.4.1",
|
71 | 66 | "eslint-config-prettier": "^8.5.0",
|
72 | 67 | "eslint-plugin-prettier": "^4.2.1",
|
73 |
| - "husky": "^3.0.4", |
74 |
| - "lint-staged": "^9.2.5", |
| 68 | + "husky": "^8.0.0", |
| 69 | + "lint-staged": "^13.0.3", |
75 | 70 | "morgan": "^1.10.0",
|
76 | 71 | "prettier": "^2.7.1",
|
77 | 72 | "pretty-quick": "^3.1.3",
|
78 |
| - "serve": "^13.0.4", |
79 |
| - "wait-on": "^3.3.0" |
| 73 | + "serve": "^14.0.1", |
| 74 | + "wait-on": "^6.0.1" |
80 | 75 | },
|
81 | 76 | "browserslist": [
|
82 | 77 | ">0.2%",
|
|
0 commit comments