Skip to content

Commit 75fcf8c

Browse files
committed
Upgrade development tooling
1 parent 04c061a commit 75fcf8c

File tree

3 files changed

+497
-477
lines changed

3 files changed

+497
-477
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn lint-staged

package.json

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@
1717
"redux-thunk": "^2.3.0"
1818
},
1919
"scripts": {
20-
"start": "REACT_APP_NODE_ENV=LOCAL react-scripts start",
2120
"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\"",
2721
"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\"",
2823
"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\"",
2925
"e2e:run": "wait-on -l http-get://localhost:3000 && cypress run",
26+
"eject": "react-scripts eject",
3027
"lint": "eslint src --max-warnings 0 && prettier --config .prettierrc --check 'src/**/*.js'",
3128
"lint:fix": "eslint --fix src",
29+
"prepare": "husky install",
3230
"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"
3435
},
3536
"eslintConfig": {
3637
"extends": [
@@ -50,33 +51,27 @@
5051
]
5152
}
5253
},
53-
"husky": {
54-
"hooks": {
55-
"pre-commit": "lint-staged"
56-
}
57-
},
5854
"lint-staged": {
5955
"*.js": [
6056
"pretty-quick --staged",
6157
"eslint src --fix",
62-
"prettier",
63-
"git add"
58+
"prettier"
6459
]
6560
},
6661
"devDependencies": {
6762
"@testing-library/cypress": "^7.0.7",
68-
"concurrently": "^5.0.0",
63+
"concurrently": "^7.4.0",
6964
"cors": "^2.8.5",
7065
"cypress": "^3.4.1",
7166
"eslint-config-prettier": "^8.5.0",
7267
"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",
7570
"morgan": "^1.10.0",
7671
"prettier": "^2.7.1",
7772
"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"
8075
},
8176
"browserslist": [
8277
">0.2%",

0 commit comments

Comments
 (0)