-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
197 lines (197 loc) · 8.29 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": "web-fullstack-boilerplate",
"version": "1.0.0",
"description": "A production ready web full-stack boilerplate with all best practices. More new feature on the way.",
"repository": "https://github.com/NNNaix/web-fullstack-boilerplate.git",
"author": {
"name": "Pengcheng Geng",
"url": "https://github.com/NNNaix",
"email": "[email protected]"
},
"private": true,
"scripts": {
"dev:web": "pnpm start:dev:web",
"dev:node": "pnpm start:dev:node",
"start:dev:web": "cross-env-shell NODE_ENV=development ts-node --files -P scripts/tsconfig.json -r tsconfig-paths/register scripts/webpack/actions/startWeb.ts --open",
"start:dev:node": "nest build --webpack --path server/tsconfig.build.json --config server/nest-cli.json --webpackPath scripts/webpack/configs/node/webpack.nest.dev.js --watch",
"start:prod": "cross-env-shell NODE_ENV=production node dist/server.js",
"build": "pnpm build:web && pnpm build:node",
"build:web": "cross-env-shell NODE_ENV=production ts-node --files -P scripts/tsconfig.json -r tsconfig-paths/register scripts/webpack/actions/buildWeb.ts",
"build:node": "nest build --webpack --path server/tsconfig.build.json --config server/nest-cli.json --webpackPath scripts/webpack/configs/node/webpack.nest.prod.js",
"build:analyze": "pnpm build --analyze",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e-node": "jest --config server/test/jest-e2e.json",
"lint": "pnpm lint:eslint && pnpm lint:stylelint",
"lint:eslint": "eslint -c .eslintrc.js --ignore-pattern '/node_modules/' --ext .js,.ts,.tsx client/app server scripts --fix",
"lint:stylelint": "stylelint --config .stylelintrc.json client/sass/*.{css,less,scss} --fix",
"doc": "pnpx @compodoc/compodoc -p server/tsconfig.build.json -s",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"preinstall": "npx only-allow pnpm"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -c .commitlintrc.js -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint -c .eslintrc.js"
],
"*.{css,less,scss}": [
"stylelint --config .stylelintrc.json"
],
"*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [
"prettier --write"
]
},
"engines": {
"node": "^14.16.0",
"pnpm": ">=5"
},
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 10"
],
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-react-constant-elements": "^7.8.3",
"@babel/plugin-transform-react-inline-elements": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@hot-loader/react-dom": "^16.12.0",
"@nestjs/cli": "^7.6.0",
"@nestjs/core": "^7.6.15",
"@nestjs/mapped-types": "*",
"@nestjs/platform-express": "^7.6.15",
"@nestjs/schematics": "^7.3.0",
"@types/compression-webpack-plugin": "^2.0.1",
"@types/connect-history-api-fallback": "^1.3.3",
"@types/copy-webpack-plugin": "^5.0.0",
"@types/express": "^4.17.11",
"@types/friendly-errors-webpack-plugin": "^0.1.2",
"@types/fs-extra": "^8.1.0",
"@types/html-webpack-plugin": "^3.2.2",
"@types/http-proxy-middleware": "^0.19.3",
"@types/jest": "^26.0.22",
"@types/lodash": "^4.14.150",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/node": "^14.14.36",
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
"@types/supertest": "^2.0.10",
"@types/terser-webpack-plugin": "^2.2.0",
"@types/webpack": "^4.41.12",
"@types/webpack-bundle-analyzer": "^2.13.3",
"@types/webpack-dev-middleware": "^3.7.0",
"@types/webpack-hot-middleware": "^2.25.2",
"@types/webpack-merge": "^4.1.5",
"@types/webpack-node-externals": "^2.5.1",
"@types/webpackbar": "^4.0.0",
"@types/yargs": "^15.0.4",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"@vercel/ncc": "^0.28.3",
"audit-ci": "^2.5.1",
"autoprefixer": "^9.7.4",
"babel-loader": "^8.0.6",
"babel-plugin-dev-expression": "^0.2.2",
"babel-plugin-import": "^1.13.0",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"chalk": "^4.0.0",
"clean-webpack-plugin": "^3.0.0",
"compression-webpack-plugin": "^3.1.0",
"connect-history-api-fallback": "^1.6.0",
"conventional-changelog-cli": "^2.0.31",
"copy-webpack-plugin": "^5.1.1",
"core-js": "^3.6.5",
"cors": "^2.8.5",
"cross-env": "^7.0.2",
"css-loader": "^3.5.2",
"eslint": "^7.22.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^8.1.0",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.10.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-unicorn": "^18.0.1",
"express": "^4.17.1",
"file-loader": "^6.0.0",
"fork-ts-checker-webpack-plugin": "^4.0.5",
"friendly-errors-webpack-plugin": "^1.7.0",
"fs-extra": "^9.0.0",
"get-port": "^5.1.1",
"html-webpack-plugin": "^4.2.0",
"http-proxy-middleware": "^1.3.1",
"husky": "^4.2.5",
"jest": "^26.6.3",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"lint-staged": "^10.1.7",
"lodash": "^4.17.21",
"log-symbols": "^4.0.0",
"mini-css-extract-plugin": "^0.9.0",
"new": "^0.1.1",
"node-sass": "^4.13.1",
"open": "^7.0.2",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-flexbugs-fixes": "^4.2.0",
"postcss-loader": "^3.0.0",
"postcss-normalize": "^9.0.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.2.1",
"react-hot-loader": "^4.12.19",
"rimraf": "^3.0.2",
"run-script-webpack-plugin": "^0.0.11",
"sass-loader": "^8.0.2",
"size-plugin": "^2.0.1",
"source-map-support": "^0.5.19",
"speed-measure-webpack-plugin": "^1.3.1",
"style-loader": "^1.1.4",
"stylelint": "^13.3.3",
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.3.0",
"stylelint-order": "^4.0.0",
"stylelint-scss": "^3.17.1",
"supertest": "^6.1.3",
"terser-webpack-plugin": "^2.3.5",
"ts-jest": "^26.5.4",
"ts-loader": "^9.1.1",
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.2.3",
"url-loader": "^4.1.0",
"webpack": "^4.43.0",
"webpack-build-notifier": "^2.0.0",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-dev-middleware": "^3.7.2",
"webpack-hot-middleware": "^2.25.0",
"webpack-merge": "^4.2.2",
"webpack-node-externals": "^3.0.0",
"webpack-open-browser": "^1.0.3",
"webpackbar": "^4.0.0",
"yargs": "^15.1.0"
}
}