-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
123 lines (123 loc) · 4.05 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
123
{
"name": "client",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:8080/",
"dependencies": {
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.10.6",
"@fontsource/ibm-plex-mono": "^5.0.12",
"@hookform/resolvers": "^3.3.4",
"@opengovsg/design-system-react": "^1.18.0",
"@tanstack/react-query": "^4.28.0",
"ci-info": "^4.0.0",
"class-validator": "^0.14.0",
"framer-motion": "^11.0.12",
"inter-ui": "^4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.51.0",
"react-router-dom": "^6.22.3",
"wretch": "^2.5.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@chakra-ui/cli": "^2.4.1",
"@pulumi/eslint-plugin": "^0.2.0",
"@snyk/protect": "latest",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^6.5.16",
"@storybook/addon-links": "^6.5.16",
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/mdx2-csf": "^1.1.0",
"@storybook/node-logger": "^7.6.17",
"@storybook/preset-create-react-app": "^4.1.2",
"@storybook/react": "^6.5.16",
"@storybook/testing-library": "^0.2.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "*",
"@types/react": "^18.0.32",
"@types/react-dom": "^18.2.21",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"babel-plugin-named-exports-order": "^0.0.2",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-opengovsg": "^2.0.6",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"lint-staged": "^13.2.0",
"prettier": "^2.8.8",
"prop-types": "^15.8.1",
"react-app-alias-ex": "^2.1.0",
"react-app-rewired": "^2.2.1",
"react-scripts": "^5.0.1",
"typescript": "^4.9.5",
"webpack": "^5.94.0"
},
"overrides": {
"react-refresh": "0.14.0"
},
"scriptComments": {
"build": [
"The flags are required for the app to build successfully.",
"`CI=false` ensures that warnings in the app linter are not treated as errors (preventing a build)",
"`INLINE_RUNTIME_CHUNK=false` prevents inline scripts from appearing in the build output. This is to prevent blank pages due to possible strict CSP rules on the backend"
]
},
"scripts": {
"gen:theme-typings": "chakra-cli tokens src/theme/index.ts",
"postinstall": "npm run gen:theme-typings",
"dev": "npm start",
"start": "DISABLE_ESLINT_PLUGIN=true react-app-rewired start",
"build": "cross-env CI=false DISABLE_ESLINT_PLUGIN=true INLINE_RUNTIME_CHUNK=false react-app-rewired build",
"test": "react-app-rewired test --passWithNoTests",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"pre-commit": "lint-staged",
"snyk-protect": "snyk-protect",
"prepare": "npm run snyk-protect"
},
"lint-staged": {
"**/*.(js|jsx|ts|tsx)": [
"eslint --cache --fix"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"snyk": true,
"jest": {
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\](?!(react-markdown|)).+\\.(js|jsx|mjs|cjs|ts|tsx)$"
],
"moduleNameMapper": {
"\\.(css|jpg|png)$": "identity-obj-proxy",
"@fontsource/ibm-plex-mono": "identity-obj-proxy",
"react-markdown": "<rootDir>/__mocks__/react-markdown.tsx"
}
}
}