|
2 | 2 | "name": "blog-react",
|
3 | 3 | "version": "0.1.0",
|
4 | 4 | "private": true,
|
| 5 | + "scripts": { |
| 6 | + "start": "craco start", |
| 7 | + "build": "craco build", |
| 8 | + "test": "craco test", |
| 9 | + "analyze": "source-map-explorer build/static/js/main.*", |
| 10 | + "eject": "react-scripts eject" |
| 11 | + }, |
5 | 12 | "dependencies": {
|
| 13 | + "@craco/craco": "^5.6.4", |
6 | 14 | "@testing-library/jest-dom": "^4.2.4",
|
7 | 15 | "@testing-library/react": "^9.3.2",
|
8 | 16 | "@testing-library/user-event": "^7.1.2",
|
| 17 | + "antd": "^4.6.4", |
| 18 | + "axios": "^0.20.0", |
| 19 | + "craco-less": "^1.17.0", |
| 20 | + "dayjs": "^1.8.35", |
| 21 | + "http-proxy-middleware": "^1.0.5", |
| 22 | + "husky": "^4.3.0", |
| 23 | + "lint-staged": "^10.4.0", |
| 24 | + "prettier": "^2.1.2", |
9 | 25 | "react": "^16.13.1",
|
10 | 26 | "react-dom": "^16.13.1",
|
11 |
| - "react-scripts": "3.4.3" |
12 |
| - }, |
13 |
| - "scripts": { |
14 |
| - "start": "react-scripts start", |
15 |
| - "build": "react-scripts build", |
16 |
| - "test": "react-scripts test", |
17 |
| - "eject": "react-scripts eject" |
| 27 | + "react-helmet": "^6.1.0", |
| 28 | + "react-redux": "^7.2.1", |
| 29 | + "react-router-dom": "^5.2.0", |
| 30 | + "react-scripts": "3.4.3", |
| 31 | + "redux": "^4.0.5", |
| 32 | + "redux-saga": "^1.1.3", |
| 33 | + "source-map-explorer": "^2.5.0" |
18 | 34 | },
|
19 | 35 | "eslintConfig": {
|
20 | 36 | "extends": "react-app"
|
|
30 | 46 | "last 1 firefox version",
|
31 | 47 | "last 1 safari version"
|
32 | 48 | ]
|
| 49 | + }, |
| 50 | + "devDependencies": { |
| 51 | + "antd-dayjs-webpack-plugin": "^1.0.1", |
| 52 | + "redux-devtools": "^3.7.0" |
| 53 | + }, |
| 54 | + "husky": { |
| 55 | + "hooks": { |
| 56 | + "pre-commit": "lint-staged" |
| 57 | + } |
| 58 | + }, |
| 59 | + "lint-staged": { |
| 60 | + "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ |
| 61 | + "prettier --single-quote --write", |
| 62 | + "git add" |
| 63 | + ] |
33 | 64 | }
|
34 | 65 | }
|
0 commit comments