-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
99 lines (99 loc) · 4.03 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "react-starter",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/cache": "^11.10.5",
"@emotion/react": "^11.10.5",
"@emotion/server": "^11.10.0",
"@emotion/styled": "^11.10.5",
"@formatjs/intl-pluralrules": "5.1.4",
"@formatjs/intl-relativetimeformat": "11.1.4",
"@mui/icons-material": "^5.11.0",
"@mui/lab": "^5.0.0-alpha.115",
"@mui/material": "^5.11.4",
"axios": "^1.3.4",
"axios-auth-refresh": "^3.3.6",
"dayjs": "^1.10.7",
"formik": "^2.2.9",
"intl": "^1.2.5",
"lodash": "^4.17.21",
"query-string": "^7.0.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-intl": "6.2.1",
"react-query": "^3.39.3",
"react-router": "^6.4.2",
"react-router-dom": "^6.4.2",
"yup": "^0.32.11",
"zustand": "^4.3.7"
},
"scripts": {
"start": "vite & tsc --noEmit --watch",
"start:clean-cache": "vite --force",
"build": "yarn license-check && tsc && vite build --base=./ &&./scripts/check-license-file.sh",
"serve": "vite preview",
"test": "vitest --passWithNoTests",
"test:ci": "CI=true yarn test",
"test:e2e": "start-server-and-test start http://localhost:3000 cypress:run",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,gql,css,json,html,htm}'",
"codegen": "./scripts/swagger-codegen.sh",
"lint:google-fonts": "./scripts/lint-google-fonts.sh",
"lint:base-href": "./scripts/lint-base-href.sh",
"lint:node-version": "./scripts/lint-node-version.sh",
"lint": "eslint 'src/**/*.ts*' --max-warnings=0 && yarn lint:google-fonts && yarn lint:base-href && yarn lint:node-version",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"license-check": "license-checker --production --onlyAllow \"MIT;BSD-3-Clause;Apache-2.0;ISC;0BSD;Unlicense;UNLICENSED\" --out ./public/third-party-licenses.txt",
"docker:build": "docker build . --build-arg VITE_COMMIT_HASH=happy-commit-hash -t aaa-react-starter",
"docker:run": "docker run -p 80:80 aaa-react-starter",
"docker:run-with-overwrites": "docker run -p 80:80 -e VITE_API_BASE_URL=\"/whatever-api-url\" -e VITE_BASE_NAME=\"/this-is-my-base\" -e VITE_DEPLOYMENT_ENV=\"happy-env\" aaa-react-starter",
"docker:verify": "docker run -d --name test-container -p 80:80 aaa-react-starter && sleep 4 && ./scripts/check-url.sh http://localhost && docker stop test-container && docker rm test-container",
"docker:verify-with-overwrites": "docker run -d --name test-overwrites-container -p 80:80 -e VITE_API_BASE_URL=\"/whatever-api-url\" -e VITE_BASE_NAME=\"/this-is-my-base\" -e VITE_DEPLOYMENT_ENV=\"happy-env\" aaa-react-starter && sleep 4 && ./scripts/check-url.sh http://localhost/this-is-my-base && docker stop test-overwrites-container && docker rm test-overwrites-container",
"prepare": "husky install"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@types/jest": "^29.5.1",
"@types/lodash": "^4.14.175",
"@types/node": "^18.11.8",
"@types/react": "18.0.24",
"@types/react-dom": "18.0.8",
"@types/react-router": "^5.1.17",
"@types/react-router-dom": "^5.3.1",
"@types/webpack-env": "1.18.0",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@vitejs/plugin-react": "^4.0.1",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"happy-dom": "^9.20.3",
"license-checker": "^25.0.1",
"prettier": "^2.8.8",
"start-server-and-test": "^1.15.2",
"typescript": "^5.0.3",
"vite": "^4.3.9",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.2",
"husky": "^8.0.3"
}
}