-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
148 lines (148 loc) · 5.91 KB
/
package.json
File metadata and controls
148 lines (148 loc) · 5.91 KB
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
{
"name": "react-ssr",
"version": "1.0.0",
"description": "",
"main": "build/server.js",
"type": "module",
"scripts": {
"start": "npm run verify && cross-env ENV=development nodemon --watch config/ scripts/build.ts --transpile-only",
"start:cypress": "cross-env ENV=cypress nodemon --watch config/ scripts/build.ts --transpile-only",
"start:cypress:ci": "node build/server.js & node build/testApi.js",
"build:cypress:client": "npx webpack --config ./config/webpack.dev.js --env IS_LOCAL=false --env IS_SERVER=false --env ENV=cypress",
"build:cypress:server": "npx webpack --config ./config/webpack.dev.js --env IS_LOCAL=false --env IS_SERVER=true --env ENV=cypress",
"build:cypress": "npm run build:cypress:server && npm run build:cypress:client",
"start:prod": "cross-env ENV=production nodemon --watch config/ scripts/build.ts --transpile-only",
"start:test-api": "nodemon --watch build/testApi.js build/testApi.js",
"build:client:prod": "npx webpack --config ./config/webpack.prod.js --env IS_LOCAL=false --env IS_SERVER=false --env ENV=production",
"build:server:prod": "npx webpack --config ./config/webpack.prod.js --env IS_LOCAL=false --env IS_SERVER=true --env ENV=production",
"build:prod": "npm run build:server:prod && npm run build:client:prod",
"build": "cross-env WITH_API=true npm run build:prod",
"build:prod:action": "cross-env GITHUB_ACTION=true npm run build:prod",
"pm2:prod": "pm2 start ecosystem.config.cjs --env production --only React-SSR",
"pm2:prod:heroku": "pm2 start ecosystem.config.cjs --env production --only 'React-SSR,Test-API'",
"test": "npx ts-node-esm scripts/test-run.ts",
"jest:test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
"prepare": "husky install",
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --fix",
"verify": "ts-node-esm ./scripts/verify.ts",
"cypress:run": "npx cypress run --e2e && npx cypress run --component",
"cypress:open": "npx cypress open -b chrome",
"cypress:open:comp": "npm run cypress:open -- --component",
"cypress:open:e2e": "npm run cypress:open -- --e2e",
"copy:reports": "mkdir -p reports && cp coverage/cypress/coverage-final.json reports/from-cypress.json && cp coverage/jest/coverage-final.json reports/from-jest.json",
"merge:reports": "nyc merge reports && mv coverage.json .nyc_output/out.json",
"gen:reports": "nyc report --reporter=html --reporter=json --report-dir=reports",
"combine:reports": "npm run copy:reports && npm run merge:reports && npm run gen:reports"
},
"author": "Sandip",
"license": "ISC",
"dependencies": {
"@reduxjs/toolkit": "^1.8.5",
"@types/node": "^17.0.41",
"axios": "^0.27.2",
"bootstrap": "^5.1.3",
"dotenv": "^16.0.1",
"etag": "^1.8.1",
"express": "^4.18.1",
"express-http-proxy": "^1.6.3",
"formik": "^2.2.9",
"helmet": "^6.0.0",
"http": "0.0.1-security",
"https": "^1.0.0",
"js-beautify": "^1.14.6",
"jsonwebtoken": "^8.5.1",
"node-cache": "^5.1.2",
"pm2": "^5.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-redux": "^8.0.2",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-toastify": "^9.0.8",
"yup": "^0.32.11"
},
"devDependencies": {
"@bahmutov/cypress-code-coverage": "^1.3.2",
"@cypress/code-coverage": "^3.10.0",
"@cypress/webpack-dev-server": "^2.3.0",
"@cypress/webpack-preprocessor": "^5.12.2",
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@swc/core": "^1.2.244",
"@swc/jest": "^0.2.22",
"@types/etag": "^1.8.1",
"@types/express": "^4.17.13",
"@types/express-http-proxy": "^1.6.3",
"@types/jest": "^28.1.4",
"@types/js-beautify": "^1.13.3",
"@types/jsonwebtoken": "^8.5.9",
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"@types/react-helmet": "^6.1.5",
"@types/react-router-dom": "^5.3.3",
"@types/webpack": "^5.28.0",
"@types/webpack-hot-middleware": "^2.25.6",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"axios-mock-adapter": "^1.21.2",
"browserslist": "^4.21.3",
"clean-webpack-plugin": "^4.0.0",
"compression-webpack-plugin": "^10.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"cypress": "^10.8.0",
"dotenv-webpack": "^7.1.1",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"ignore-emit-webpack-plugin": "^2.0.6",
"ignore-loader": "^0.1.2",
"jest": "^28.1.2",
"jest-environment-jsdom": "^28.1.2",
"lighthouse": "^9.6.7",
"mddir": "^1.1.1",
"mini-css-extract-plugin": "^2.6.1",
"node-sass": "^6.0.1",
"nodemon-webpack-plugin": "^4.7.1",
"prettier": "^2.7.1",
"process": "^0.11.10",
"reload": "^3.2.0",
"sass-loader": "^13.0.2",
"stream-browserify": "^3.0.0",
"style-loader": "^3.3.1",
"swc-loader": "^0.2.3",
"terser-webpack-plugin": "^5.3.3",
"ts-jest": "^28.0.5",
"ts-jest-resolver": "^2.0.0",
"ts-node": "^10.8.1",
"typescript": "^4.7.3",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.2",
"webpack-dev-middleware": "^5.3.3",
"webpack-dev-server": "^4.11.1",
"webpack-hot-middleware": "^2.25.2",
"webpack-merge": "^5.8.0",
"webpack-node-externals": "^3.0.0",
"workbox-webpack-plugin": "^6.5.4"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"engines": {
"node": "16.x"
}
}