-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
197 lines (197 loc) · 7.97 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
{
"name": "starterjs.dev",
"version": "0.3.0",
"description": "React starter kit for building modern Web Apps",
"private": true,
"author": "Abhishek Raj <[email protected]>",
"scripts": {
"webpack": "webpack --config starter/config/webpack/webpack.config.ts",
"analyze": "cross-env NODE_ENV=production BUNDLE_ANALYZE=true npm run webpack",
"analyze:modern": "cross-env NODE_ENV=production MODERN=true BUNDLE_ANALYZE=true npm run webpack",
"sync": "tsc starter/utils/verify.ts --target es5 --esModuleInterop --resolveJsonModule && mv starter/utils/*.js starter/scripts/",
"build:client": "npm run webpack",
"build:server": "cross-env PLATFORM=server npm run webpack",
"build:client:modern": "cross-env MODERN=true npm run build:client",
"build:client:watch": "npm run webpack -- --watch",
"build:server:watch": "cross-env PLATFORM=server npm run webpack -- --watch",
"build:build": "webpack --config starter/config/webpack/webpack.build.ts",
"build:all": "run-p --silent build:build build:client build:server",
"build:all:watch": "run-p --silent build:build build:client:watch build:server:watch",
"build": "npm run -s clean && npm run build:all",
"build:prod": "npm run -s clean && cross-env NODE_ENV=production BUILD_TIME=$(eval echo `date +'%s'`) run-p --silent build:all build:client:modern",
"launch:server": "nodemon --quiet --watch build/.event/done --exec 'node build/server/index.js'",
"launch:server:wait": "wait-on build/.event/done && npm run launch:server",
"build:api": "cross-env PLATFORM=server webpack --config starter/config/webpack/webpack.api.ts",
"launch:api": "nodemon --quiet --watch build/api --exec 'node build/api/index.js'",
"launch:api:watch": "cross-env PLATFORM=server webpack --config starter/config/webpack/webpack.api.ts --watch",
"start:all": "run-p --silent build:all:watch launch:server:wait launch:api:watch type-check:watch",
"start:all:prod": "run-p --silent build:all build:client:modern build:api type-check && run-p --silent launch:server launch:api",
"start": "npm run -s verify && npm run -s clean && npm run start:all",
"start:prod": "npm run -s verify && npm run -s clean && cross-env NODE_ENV=production BUILD_TIME=$(eval echo `date +'%s'`) npm run start:all:prod",
"pm2:start:prep": "run-s build:prod build:api",
"pm2:start:web": "pm2 start build/server/index.js --name starterjs.dev --time",
"pm2:start": "run-s pm2:start:prep pm2:start:web",
"pm2:stop": "pm2 stop starterjs.dev",
"pm2:logs": "pm2 logs starterjs.dev",
"predeploy": "env-cmd -f env/.env.deploy env-cmd -f env/.env ts-node starter/utils/pre-deploy.ts",
"deploy:f": "env-cmd -f starter/env/.env.deploy.tmp run-s pm2:start:prep pm2:start:web",
"deploy": "env-cmd -f starter/env/.env.deploy.tmp run-s pm2:start:prep pm2:stop pm2:start:web",
"postdeploy": "rm -f starter/env/.env.deploy.tmp",
"build-ts": "tsc --emitDeclarationOnly",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"lint": "eslint '**/*.{js,jsx,ts,tsx}'",
"lint:fix": "npm run lint -- --fix",
"css-lint": "stylelint 'web/**/*.{css,scss}'",
"css-lint:fix": "npm run css-lint -- --fix",
"clean": "npx rimraf build node_modules/.cache node_modules/.package-lock.json",
"clean:all": "npx rimraf build node_modules package-lock.json",
"prepare": "husky install starter/config/husky",
"pre-commit": "lint-staged",
"verify": "node starter/scripts/verify.js && jsonlint -q tsconfig.json",
"verify:sync": "run-s sync verify",
"blame": "git log -S",
"hist": "git log --oneline | grep -i",
"follow": "git log --follow --oneline",
"blist": "npx browserslist",
"blist:coverage": "npx browserslist --coverage",
"blist:update": "npx browserslist@latest --update-db",
"ncu": "ncu",
"ncuu": "ncu -u",
"check-env": "node -e 'console.log(process.env)' | grep npm",
"check": "es-check es5 'build/public/js/*.js'",
"check:es6": "es-check es6 'build/public/js/esm/*.esm.js'",
"check:deps": "are-you-es5 check .",
"cloc": "npx cloc --exclude-list-file=starter/config/.clocignore --exclude-dir=$(tr '\\n' ',' < starter/config/.clocignore) ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/baadal/starter-app.git"
},
"license": "MIT",
"devDependencies": {
"@babel/core": "7.14.8",
"@babel/preset-env": "7.14.9",
"@babel/preset-react": "7.14.5",
"@babel/preset-typescript": "7.14.5",
"@emotion/babel-preset-css-prop": "11.2.0",
"@loadable/babel-plugin": "5.13.2",
"@loadable/webpack-plugin": "5.15.0",
"@types/caniuse-lite": "^1.0.1",
"@types/compression": "1.7.1",
"@types/copy-webpack-plugin": "8.0.1",
"@types/dotenv-webpack": "7.0.3",
"@types/express": "4.17.13",
"@types/history": "^4.7.9",
"@types/loadable__component": "^5.13.4",
"@types/loadable__server": "^5.12.6",
"@types/mime-types": "^2.1.0",
"@types/mini-css-extract-plugin": "2.0.1",
"@types/node": "16.4.10",
"@types/react": "^17.0.15",
"@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.1.8",
"@types/rimraf": "^3.0.1",
"@types/semver": "^7.3.8",
"@types/serialize-javascript": "^5.0.1",
"@types/ua-parser-js": "^0.7.36",
"@types/webpack-bundle-analyzer": "4.4.1",
"@typescript-eslint/eslint-plugin": "4.28.5",
"@typescript-eslint/parser": "4.28.5",
"are-you-es5": "2.1.1",
"babel-loader": "8.2.2",
"browserslist": "4.16.6",
"cloc": "2.8.0",
"compression-webpack-plugin": "8.0.1",
"copy-webpack-plugin": "9.0.1",
"cross-env": "7.0.3",
"css-loader": "6.2.0",
"cssnano": "5.0.7",
"dotenv-webpack": "7.0.3",
"env-cmd": "10.1.0",
"es-check": "5.2.4",
"eslint": "7.32.0",
"eslint-config-airbnb-typescript": "12.3.1",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.24.0",
"eslint-plugin-react-hooks": "4.2.0",
"event-hooks-webpack-plugin": "2.2.0",
"husky": "7.0.1",
"ignore-emit-webpack-plugin": "2.0.6",
"jsonlint": "1.6.3",
"lint-staged": "11.1.1",
"mini-css-extract-plugin": "2.1.0",
"node-sass": "6.0.1",
"nodemon": "2.0.12",
"nodemon-webpack-plugin": "4.5.2",
"npm-check-updates": "11.8.3",
"npm-run-all": "4.1.5",
"pm2": "5.1.0",
"postcss-loader": "6.1.1",
"postcss-preset-env": "6.7.0",
"prettier": "2.3.2",
"sass-loader": "12.1.0",
"style-loader": "3.2.1",
"stylelint": "13.13.1",
"stylelint-config-standard": "22.0.0",
"ts-node": "10.1.0",
"typescript": "4.3.5",
"wait-on": "6.0.0",
"webpack": "5.47.1",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "4.7.2",
"webpack-merge": "5.8.0",
"webpack-node-externals": "3.0.0"
},
"dependencies": {
"@emotion/css": "^11.1.3",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@loadable/component": "^5.15.0",
"@loadable/server": "^5.15.0",
"caniuse-lite": "^1.0.30001248",
"chalk": "4.1.2",
"compression": "1.7.4",
"core-js": "^3.16.0",
"cors": "2.8.5",
"express": "4.17.1",
"file-type": "^16.5.2",
"intersection-observer": "0.12.0",
"mime-types": "^2.1.32",
"pretty-ms": "7.0.1",
"raf": "^3.4.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0",
"react-router-dom": "^5.2.0",
"reload": "3.2.0",
"rimraf": "^3.0.2",
"rxjs": "^7.3.0",
"semver": "^7.3.5",
"serialize-javascript": "^6.0.0",
"ua-parser-js": "^0.7.28",
"whatwg-fetch": "3.6.2",
"xhr2": "0.2.1"
},
"browserslist": [
"cover 97%",
"chrome >= 23",
"firefox >= 21",
"edge >= 12",
"safari >= 6",
"ios_saf >= 6",
"opera >= 15",
"not ie 11",
"not dead"
],
"sideEffects": [
"./starter/sticky/**"
],
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --fix",
"*.{css,scss}": "stylelint --fix"
}
}