-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
122 lines (122 loc) · 3.84 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "best-practices-app-react",
"version": "1.0.0",
"private": true,
"dependencies": {
"@hookform/resolvers": "^3.3.2",
"@hqoss/monads": "^0.5.0",
"@reduxjs/toolkit": "^1.9.6",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.55",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.8",
"@types/react-router-dom": "^5.3.3",
"jsonwebtoken": "8.5.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11",
"react-helmet-async": "^1.3.0",
"react-hook-form": "^7.47.0",
"react-lazily": "^0.9.2",
"react-redux": "^8.1.3",
"react-router-dom": "^6.16.0",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4",
"yup": "^1.3.2"
},
"scripts": {
"start": "craco start",
"start:cli": "cross-env BROWSER=none REACT_APP_API_MOCKING=true REACT_APP_API_MOCKING_DB_SEED=true craco start",
"build": "craco build",
"test:coverage": "craco test --collect-coverage --coverage --watchAll=false",
"test": "cross-env REACT_APP_API_MOCKING=true REACT_APP_API_MOCKING_DB_SEED=true craco test",
"cypress:install": "cypress install",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"test:e2e:dev": "start-server-and-test start:cli http://localhost:3000 cypress:open",
"pretest:e2e:run": "cross-env REACT_APP_API_MOCKING=true REACT_APP_API_MOCKING_DB_SEED=true npm run build",
"test:e2e:run": "start-server-and-test serve http://localhost:3000 cypress:run",
"test:e2e": "is-ci \"test:e2e:run\" \"test:e2e:dev\"",
"serve": "serve --no-clipboard --single --listen 3000 build",
"eject": "react-scripts eject",
"prettier:check": "prettier --ignore-path .gitignore --check \"**/*.+(js|json|ts|tsx)\"",
"prettier": "prettier --ignore-path .gitignore --write \"**/*.+(js|json|ts|tsx)\"",
"check-types": "tsc --project tsconfig.json --pretty --noEmit",
"check-format": "npm run prettier -- --list-different",
"lint": "eslint --fix --ext .js,.ts,.tsx ./src --ignore-path .gitignore"
},
"pre-commit": [
"prettier:check",
"lint"
],
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"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",
"@craco/craco": "^7.1.0",
"@craco/types": "^7.1.0",
"@faker-js/faker": "^8.2.0",
"@mswjs/data": "^0.15.0",
"@testing-library/cypress": "^10.0.1",
"@types/jsonwebtoken": "^9.0.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"cross-env": "^7.0.3",
"cypress": "^13.6.3",
"eslint": "^8.56.0",
"is-ci": "^3.0.1",
"is-ci-cli": "^2.2.0",
"msw": "^1.3.2",
"pre-commit": "^1.2.2",
"prettier": "^2.3.2",
"serve": "^14.2.1",
"start-server-and-test": "^2.0.3"
},
"msw": {
"workerDirectory": "public"
},
"jest": {
"clearMocks": true,
"moduleNameMapper": {
"^@/(.+)": "<rootDir>/src/$1"
},
"collectCoverageFrom": [
"<rootDir>/src/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/src/**/*/*.d.ts",
"!<rootDir>/src/**/*/types.ts",
"!<rootDir>/src/index.tsx",
"!<rootDir>/src/setupTests.ts",
"!<rootDir>/src/test/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/src/reportWebVitals.ts"
],
"coverageThreshold": {
"global": {
"branches": 60,
"functions": 80,
"lines": 80,
"statements": 80
}
}
}
}