-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
215 lines (215 loc) · 7.96 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"name": "cypress-realworld-app",
"version": "1.0.0",
"description": "A payment application to demonstrate **real-world** usage of Cypress testing methods, patterns, and workflows. For a full reference of our documentation, go to https://docs.cypress.io",
"repository": {
"type": "git",
"url": "https://github.com/cypress-io/cypress-realworld-app.git"
},
"author": "Cypress-io",
"license": "MIT",
"bugs": {
"url": "https://github.com/cypress-io/cypress-realworld-app/issues"
},
"dependencies": {
"@auth0/auth0-react": "2.1.1",
"@babel/core": "7.0.1",
"@babel/plugin-syntax-flow": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.9",
"@graphql-tools/graphql-file-loader": "7.3.10",
"@graphql-tools/load": "7.5.9",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
"@material-ui/lab": "4.0.0-alpha.61",
"@matheusluizn/react-google-login": "^5.1.6",
"@okta/jwt-verifier": "^3.0.1",
"@okta/okta-auth-js": "^7.3.0",
"@okta/okta-react": "^6.7.0",
"@types/detect-port": "^1.3.2",
"@xstate/react": "3.0.0",
"axios": "0.26.1",
"clsx": "1.1.1",
"date-fns": "2.28.0",
"detect-port": "^1.5.1",
"dinero.js": "1.9.1",
"formik": "2.2.9",
"history": "4.10.1",
"postinstall-postinstall": "^2.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-infinite-calendar": "2.3.1",
"react-number-format": "4.9.4",
"react-router": "5.3.4",
"react-router-dom": "5.3.4",
"react-virtualized": "9.22.5",
"shortid": "2.2.16",
"uuid": "8.3.2",
"webpack": "5",
"xstate": "4.35.4",
"yup": "0.32.11"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
"@faker-js/faker": "6.1.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/bcryptjs": "2.4.2",
"@types/bluebird": "3.5.36",
"@types/connect-flash": "0.0.37",
"@types/connect-history-api-fallback": "1.3.5",
"@types/cors": "2.8.12",
"@types/dinero.js": "1.9.0",
"@types/express": "4.17.2",
"@types/express-paginate": "1.0.1",
"@types/express-serve-static-core": "4.17.2",
"@types/express-session": "1.17.4",
"@types/faker": "5.5.9",
"@types/http-proxy-middleware": "0.19.3",
"@types/json-server": "0.14.4",
"@types/jsonwebtoken": "8.5.8",
"@types/jwt-decode": "2.2.1",
"@types/lodash": "4.14.181",
"@types/lowdb": "1.0.11",
"@types/morgan": "1.9.3",
"@types/node": "14.18.13",
"@types/passport": "1.0.7",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react-infinite-calendar": "2.3.6",
"@types/react-router": "5.1.18",
"@types/react-router-dom": "5.3.3",
"@types/react-virtualized": "9.21.21",
"@types/shortid": "0.0.29",
"@types/uuid": "8.3.4",
"@types/validator": "13.7.2",
"@types/webpack-env": "1.16.4",
"@types/yup": "0.29.13",
"@vitejs/plugin-react": "^4.0.2",
"bcryptjs": "2.4.3",
"concurrently": "7.1.0",
"connect-history-api-fallback": "1.6.0",
"cors": "2.8.5",
"cross-env": "7.0.3",
"dotenv": "16.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^5.0.0",
"express": "4.17.3",
"express-graphql": "0.12.0",
"express-jwt": "6.1.1",
"express-paginate": "1.0.2",
"express-session": "1.17.2",
"express-validator": "6.14.0",
"fuse.js": "6.5.3",
"graphql": "16.8.1",
"graphql-tools": "8.2.7",
"http-proxy-middleware": "0.19.1",
"istanbul-lib-coverage": "3.2.0",
"jsdom": "^22.1.0",
"json": "11.0.0",
"jwks-rsa": "2.0.5",
"lowdb": "1.0.0",
"morgan": "1.10.0",
"ncp": "2.0.0",
"nodemon": "2.0.15",
"npm": "^9.8.0",
"nyc": "15.1.0",
"passport": "0.6.0",
"passport-local": "1.0.0",
"patch-package": "^7.0.0",
"prettier": "^3.0.0",
"start-server-and-test": "1.14.0",
"ts-node": "10.7.0",
"typescript": "4.6.3",
"vite": "^4.4.2",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-istanbul": "^4.1.0",
"vitest": "^0.33.0"
},
"scripts": {
"dev": "cross-env NODE_ENV=development concurrently yarn:start:react yarn:start:api:watch",
"dev:coverage": "cross-env NODE_ENV=development CYPRESS_COVERAGE=true concurrently yarn:start:react yarn:start:api:watch",
"dev:auth0": "cross-env VITE_AUTH0=true NODE_ENV=development concurrently yarn:start:react yarn:start:api:watch",
"dev:okta": "cross-env VITE_OKTA=true NODE_ENV=development concurrently yarn:start:react yarn:start:api:watch",
"dev:cognito": "cross-env VITE_AWS_COGNITO=true NODE_ENV=development concurrently yarn:start:react yarn:start:api:watch",
"dev:google": "cross-env VITE_GOOGLE=true NODE_ENV=development concurrently yarn:start:react yarn:start:api:watch",
"predev:cognito": "yarn build:aws-exports-es5",
"predev:cognito:ci": "yarn copy:mock:awsexports && yarn copy:mock:awsexportses5",
"copy:mock:awsexports": "ncp scripts/mock-aws-exports.js src/aws-exports.js",
"copy:mock:awsexportses5": "ncp scripts/mock-aws-exports-es5.js aws-exports-es5.js",
"build:aws-exports-es5": "cross-env tsc --skipLibCheck --allowJs --lib 'es5' --module 'commonjs' --target 'es5' --moduleResolution 'node' --outDir . src/aws-exports.js; mv aws-exports.js aws-exports-es5.js",
"start": "cross-env NODE_ENV=development concurrently yarn:start:react yarn:start:api",
"start:ci": "cross-env NODE_ENV=test concurrently yarn:start:react:proxy-server yarn:start:api",
"prestart:ci": "yarn predev:cognito:ci",
"start:react": "vite",
"start:empty": "cross-env NODE_ENV=development EMPTY_SEED=true concurrently yarn:start:react yarn:start:api:watch",
"lint": "eslint && prettier --check \"**/**.{ts,js,tsx}\" \"*.{json,md,yml}\"",
"list:dev:users": "cat data/database.json | json -a users | json -a id username",
"types": "tsc --noEmit",
"test": "yarn cypress:open",
"test:headless": "yarn cypress:run",
"test:api": "yarn cypress:run --spec 'cypress/tests/api/*'",
"test:unit": "vitest",
"test:unit:ci": "vitest --run",
"test:component:ci": "yarn cypress:run:component",
"start:api": "yarn tsnode --files backend/app.ts",
"start:api:watch": "nodemon --exec yarn tsnode --watch 'backend' backend/app.ts",
"start:react:proxy-server": "yarn tsnode scripts/testServer.ts",
"prettier": "prettier --write '**/**.{ts,js,tsx}' '*.{json,md,yml}'",
"tsnode": "nyc --silent ts-node -P tsconfig.tsnode.json",
"tsnode:not-instrumented": "ts-node -P tsconfig.tsnode.json",
"db:seed": "yarn tsnode scripts/generateSeedData",
"predb:seed:dev": "yarn predev:cognito:ci",
"db:seed:dev": "ncp ./data/database-seed.json ./data/database.json",
"db:seed:empty": "ncp ./data/empty-seed.json ./data/database.json",
"postdb:seed": "yarn db:seed:dev",
"prestart": "yarn db:seed:dev",
"predev": "yarn db:seed:dev",
"prestart:empty": "yarn db:seed:empty",
"prebuild": "yarn types",
"prebuild:ci": "yarn predev:cognito:ci",
"build:ci": "cross-env CYPRESS_COVERAGE=true vite build",
"build": "vite build",
"codesandbox:start:api": "yarn tsnode:not-instrumented --files backend/app.ts",
"codesandbox:start": "NODE_ENV=development TSC_COMPILE_ON_ERROR=true concurrently \"vite\" yarn:start:api:codesandbox",
"postinstall": "patch-package"
},
"engines": {
"node": "^18.0.0 || >=20.0.0"
},
"eslintConfig": {
"extends": [
"react-app",
"plugin:prettier/recommended"
],
"plugins": [
"prettier"
],
"rules": {
"no-unused-expressions": 0
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"nyc": {
"exclude": [
"src/models/*.ts"
],
"reporter": [
"html",
"json"
]
},
"packageManager": "yarn@1.22.19"
}