|
1 | 1 | { |
2 | | - "name": "client", |
| 2 | + "name": "client-cra", |
3 | 3 | "version": "0.1.0", |
4 | 4 | "private": true, |
| 5 | + "main": "src/index.tsx", |
| 6 | + "proxy": "http://localhost:8080", |
5 | 7 | "scripts": { |
6 | | - "start": "snowpack dev", |
7 | | - "start:reload": "snowpack dev --reload", |
8 | | - "build": "snowpack build", |
9 | | - "test": "web-test-runner \"src/**/*.test.tsx\"", |
| 8 | + "start": "craco start", |
| 9 | + "build": "craco build", |
| 10 | + "test": "craco test", |
10 | 11 | "format": "eslint --fix \"src/**/*.ts?(x)\"", |
11 | 12 | "eslint:check": "eslint \"src/**/*.ts?(x)\"", |
12 | 13 | "prettier:check": "prettier --check \"src/**/*.ts?(x)\"", |
13 | 14 | "ts:check": "tsc --project . --noEmit", |
14 | | - "ts:check:watch": "tsc --project . --noEmit -w" |
| 15 | + "ts:check:watch": "tsc --project . --noEmit -w", |
| 16 | + "eject": "react-scripts eject" |
15 | 17 | }, |
16 | 18 | "dependencies": { |
17 | 19 | "@date-io/luxon": "1.3.13", |
|
28 | 30 | "i18next": "^19.8.3", |
29 | 31 | "i18next-sync-fs-backend": "^1.1.1", |
30 | 32 | "i18next-xhr-backend": "^3.2.2", |
31 | | - "mdi-material-ui": "^6.21.0", |
| 33 | + "mdi-material-ui": "^6.23.0", |
32 | 34 | "notistack": "^1.0.3", |
33 | 35 | "react": "^17.0.1", |
34 | 36 | "react-dom": "^17.0.1", |
|
41 | 43 | "yup": "^0.29.3" |
42 | 44 | }, |
43 | 45 | "devDependencies": { |
44 | | - "@material-ui/system": "^4.12.1", |
| 46 | + "@craco/craco": "^7.0.0-alpha.3", |
45 | 47 | "@material-ui/utils": "^4.11.2", |
46 | | - "@snowpack/plugin-dotenv": "^2.0.5", |
47 | | - "@snowpack/plugin-react-refresh": "^2.3.9", |
48 | | - "@snowpack/plugin-typescript": "^1.1.0", |
49 | | - "@snowpack/plugin-webpack": "^2.3.0", |
50 | | - "@snowpack/web-test-runner-plugin": "^0.1.5", |
51 | | - "@testing-library/react": "^11.0.0", |
| 48 | + "@material-ui/system": "^4.12.1", |
| 49 | + "@testing-library/jest-dom": "^5.16.2", |
| 50 | + "@testing-library/react": "^12.1.3", |
| 51 | + "@testing-library/user-event": "^13.5.0", |
52 | 52 | "@types/chai": "^4.2.13", |
53 | 53 | "@types/file-saver": "^2.0.1", |
| 54 | + "@types/jest": "^27.4.0", |
54 | 55 | "@types/papaparse": "^5.2.6", |
55 | 56 | "@types/react": "^17.0.0", |
56 | 57 | "@types/react-dom": "^17.0.0", |
57 | 58 | "@types/react-router": "^5.1.11", |
58 | 59 | "@types/react-router-dom": "^5.1.7", |
59 | 60 | "@types/react-window": "^1.8.2", |
60 | | - "@types/snowpack-env": "^2.3.3", |
61 | 61 | "@types/yup": "^0.29.11", |
62 | | - "@web/test-runner": "^0.11.7", |
| 62 | + "babel-loader": "^8.2.3", |
| 63 | + "babel-plugin-named-asset-import": "^0.3.8", |
63 | 64 | "chai": "^4.2.0", |
64 | 65 | "core-js": "^3.8.3", |
| 66 | + "craco-alias": "^3.0.1", |
| 67 | + "eslint-plugin-react-hooks": "^4.2.0", |
| 68 | + "html-loader": "^3.1.0", |
| 69 | + "html-webpack-plugin": "^5.5.0", |
65 | 70 | "http-proxy": "^1.18.1", |
| 71 | + "react-dev-utils": "^12.0.0", |
| 72 | + "react-scripts": "5.0.0", |
66 | 73 | "react-transition-group": "^4.4.2", |
67 | 74 | "regenerator-runtime": "^0.13.7", |
68 | | - "snowpack": "^3.8.3" |
| 75 | + "simple-pug-loader": "^0.2.1" |
69 | 76 | }, |
70 | | - "browserslist": [ |
71 | | - ">0.2%", |
72 | | - "not dead", |
73 | | - "not ie <= 11", |
74 | | - "not op_mini all" |
75 | | - ] |
| 77 | + "browserslist": { |
| 78 | + "production": [ |
| 79 | + ">0.2%", |
| 80 | + "not dead", |
| 81 | + "not op_mini all" |
| 82 | + ], |
| 83 | + "development": [ |
| 84 | + "last 1 chrome version", |
| 85 | + "last 1 firefox version", |
| 86 | + "last 1 safari version" |
| 87 | + ] |
| 88 | + } |
76 | 89 | } |
0 commit comments