@qingtian/qtcli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +193 -0
- package/dist/bin/cli.js +11 -0
- package/dist/package.json +209 -0
- package/dist/qt.conf.js +101 -0
- package/dist/src/App.js +10 -0
- package/dist/src/commands/build.js +74 -0
- package/dist/src/commands/dev.js +68 -0
- package/dist/src/commands/index.js +83 -0
- package/dist/src/commands/init.js +128 -0
- package/dist/src/cores/context.js +123 -0
- package/dist/src/index.js +29 -0
- package/dist/src/processEnv/index.js +23 -0
- package/dist/src/processEnv/injector.js +39 -0
- package/dist/src/processEnv/loader.js +201 -0
- package/dist/src/processEnv/manager.js +122 -0
- package/dist/src/processEnv/types.js +2 -0
- package/dist/src/proxys/build/index.js +225 -0
- package/dist/src/proxys/dev/index.js +284 -0
- package/dist/src/proxys/init/index.js +90 -0
- package/dist/src/servers/server.js +46 -0
- package/dist/src/types/baseInterface.js +46 -0
- package/dist/src/types/contextModel.js +21 -0
- package/dist/src/utils/childProcess.js +134 -0
- package/dist/src/utils/env.js +56 -0
- package/dist/src/utils/fileUtils.js +121 -0
- package/dist/src/utils/format.js +23 -0
- package/dist/src/utils/formatOutput.js +242 -0
- package/dist/src/utils/logger.js +70 -0
- package/dist/src/utils/printer.js +148 -0
- package/dist/src/utils/sleep.js +11 -0
- package/dist/src/utils/url.js +42 -0
- package/dist/src/webpack/npm/es.js +127 -0
- package/dist/src/webpack/npm/index.js +100 -0
- package/dist/src/webpack/npm/lib.js +128 -0
- package/dist/src/webpack/npm/webpack.base.js +221 -0
- package/dist/src/webpack/npm/webpack.prod.js +76 -0
- package/dist/src/webpack/plugins/DonePlugin.js +14 -0
- package/dist/src/webpack/plugins/FileListPlugin.js +28 -0
- package/dist/src/webpack/plugins/InjectScriptPlugin.js +33 -0
- package/dist/src/webpack/web/index.js +130 -0
- package/dist/src/webpack/web/webpack.analy.js +10 -0
- package/dist/src/webpack/web/webpack.base.js +419 -0
- package/dist/src/webpack/web/webpack.dev.js +38 -0
- package/dist/src/webpack/web/webpack.prod.js +82 -0
- package/package.json +209 -0
package/package.json
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qingtian/qtcli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "QTCli是一款基于node的前端工程化底座",
|
|
5
|
+
"homepage": "https://gitee.com/fengrengame/qtnode#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://gitee.com/fengrengame/qtnode/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://gitee.com/fengrengame/qtnode.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"author": "yujie.guo",
|
|
15
|
+
"type": "commonjs",
|
|
16
|
+
"main": "./dist/bin/cli.js",
|
|
17
|
+
"bin": {
|
|
18
|
+
"qtcli": "./dist/bin/cli.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"cli",
|
|
26
|
+
"frontend",
|
|
27
|
+
"build-tool",
|
|
28
|
+
"webpack",
|
|
29
|
+
"react"
|
|
30
|
+
],
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "rimraf ./dist && tsc -p .",
|
|
36
|
+
"clean": "rimraf ./dist",
|
|
37
|
+
"f2elint-fix": "f2elint fix",
|
|
38
|
+
"f2elint-scan": "f2elint scan",
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"lint:fix": "eslint --fix .",
|
|
41
|
+
"prepare": "husky install",
|
|
42
|
+
"prepublishOnly": "npm run build",
|
|
43
|
+
"start": "node --max-old-space-size=8192 ./node_modules/.bin/ts-node ./bin/cli.ts"
|
|
44
|
+
},
|
|
45
|
+
"commitlint": {
|
|
46
|
+
"extends": [
|
|
47
|
+
"ali"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"lint-staged": {
|
|
51
|
+
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix",
|
|
52
|
+
"*.{css,less,scss}": "stylelint --fix",
|
|
53
|
+
"*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write"
|
|
54
|
+
},
|
|
55
|
+
"eslintConfig": {
|
|
56
|
+
"extends": [
|
|
57
|
+
"ali/typescript/node"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"stylelint": {},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@babel/cli": "7.24.6",
|
|
63
|
+
"@babel/core": "^7.16.0",
|
|
64
|
+
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
65
|
+
"@babel/plugin-proposal-decorators": "7.18.2",
|
|
66
|
+
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
67
|
+
"@babel/plugin-syntax-flow": "7.24.6",
|
|
68
|
+
"@babel/plugin-transform-block-scoping": "7.27.0",
|
|
69
|
+
"@babel/plugin-transform-flow-strip-types": "7.24.6",
|
|
70
|
+
"@babel/plugin-transform-runtime": "7.18.5",
|
|
71
|
+
"@babel/plugin-transform-typescript": "7.24.6",
|
|
72
|
+
"@babel/preset-env": "7.18.2",
|
|
73
|
+
"@babel/preset-react": "7.17.12",
|
|
74
|
+
"@babel/preset-typescript": "7.17.12",
|
|
75
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
76
|
+
"@svgr/webpack": "^5.5.0",
|
|
77
|
+
"@types/react": "18.0.12",
|
|
78
|
+
"@types/react-dom": "18.0.5",
|
|
79
|
+
"autoprefixer": "10.4.7",
|
|
80
|
+
"babel-jest": "^27.4.2",
|
|
81
|
+
"babel-loader": "^8.2.3",
|
|
82
|
+
"babel-plugin-import": "1.13.8",
|
|
83
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
84
|
+
"babel-preset-react-app": "^10.0.1",
|
|
85
|
+
"bfj": "^7.0.2",
|
|
86
|
+
"browserslist": "^4.18.1",
|
|
87
|
+
"camelcase": "^6.2.1",
|
|
88
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
89
|
+
"cli-progress": "3.12.0",
|
|
90
|
+
"colors": "1.4.0",
|
|
91
|
+
"commander": "12.1.0",
|
|
92
|
+
"commitlint-config-ali": "1.1.0",
|
|
93
|
+
"compressing": "1.10.0",
|
|
94
|
+
"compression-webpack-plugin": "10.0.0",
|
|
95
|
+
"copy-webpack-plugin": "11.0.0",
|
|
96
|
+
"core-js": "3.23.0",
|
|
97
|
+
"cross-env": "7.0.3",
|
|
98
|
+
"css-loader": "^6.5.1",
|
|
99
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
100
|
+
"dotenv": "^10.0.0",
|
|
101
|
+
"dotenv-expand": "^5.1.0",
|
|
102
|
+
"eslint": "^8.3.0",
|
|
103
|
+
"eslint-config-ali": "15.1.0",
|
|
104
|
+
"eslint-config-prettier": "9.1.0",
|
|
105
|
+
"eslint-config-react-app": "^7.0.1",
|
|
106
|
+
"eslint-plugin-prettier": "5.2.6",
|
|
107
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
108
|
+
"extract-zip": "2.0.1",
|
|
109
|
+
"file-loader": "^6.2.0",
|
|
110
|
+
"fs-extra": "^10.0.0",
|
|
111
|
+
"glob-all": "3.3.1",
|
|
112
|
+
"html-webpack-plugin": "^5.5.0",
|
|
113
|
+
"husky": "8.0.3",
|
|
114
|
+
"identity-obj-proxy": "^3.0.0",
|
|
115
|
+
"inquirer": "8.0.0",
|
|
116
|
+
"jest": "^27.4.3",
|
|
117
|
+
"jest-resolve": "^27.4.2",
|
|
118
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
119
|
+
"less": "4.1.3",
|
|
120
|
+
"less-loader": "11.0.0",
|
|
121
|
+
"lint-staged": "15.5.1",
|
|
122
|
+
"mini-css-extract-plugin": "^2.7.6",
|
|
123
|
+
"postcss": "^8.4.38",
|
|
124
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
125
|
+
"postcss-loader": "^6.2.1",
|
|
126
|
+
"postcss-normalize": "^10.0.1",
|
|
127
|
+
"postcss-preset-env": "^7.0.1",
|
|
128
|
+
"prettier": "3.5.3",
|
|
129
|
+
"prettier-config-ali": "1.3.2",
|
|
130
|
+
"progress": "2.0.3",
|
|
131
|
+
"progress-bar-webpack-plugin": "2.1.0",
|
|
132
|
+
"prompts": "^2.4.2",
|
|
133
|
+
"purgecss-webpack-plugin": "4.1.3",
|
|
134
|
+
"react": "^18.2.0",
|
|
135
|
+
"react-app-polyfill": "^3.0.0",
|
|
136
|
+
"react-dev-utils": "^12.0.1",
|
|
137
|
+
"react-dom": "^18.2.0",
|
|
138
|
+
"react-refresh": "^0.11.0",
|
|
139
|
+
"resolve": "^1.20.0",
|
|
140
|
+
"resolve-url-loader": "^4.0.0",
|
|
141
|
+
"rimraf": "5.0.7",
|
|
142
|
+
"sass": "1.70.0",
|
|
143
|
+
"sass-loader": "^12.3.0",
|
|
144
|
+
"semver": "^7.3.5",
|
|
145
|
+
"source-map-loader": "^3.0.0",
|
|
146
|
+
"speed-measure-webpack-plugin": "1.5.0",
|
|
147
|
+
"style-loader": "^3.3.1",
|
|
148
|
+
"stylelint": "16.19.1",
|
|
149
|
+
"stylelint-config-ali": "2.1.2",
|
|
150
|
+
"stylelint-prettier": "5.0.3",
|
|
151
|
+
"tailwindcss": "^3.0.2",
|
|
152
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
153
|
+
"thread-loader": "3.0.4",
|
|
154
|
+
"ts-node": "10.9.2",
|
|
155
|
+
"typescript": "4.7.3",
|
|
156
|
+
"unzip": "0.1.11",
|
|
157
|
+
"url-loader": "4.1.1",
|
|
158
|
+
"webpack": "^5.64.4",
|
|
159
|
+
"webpack-bundle-analyzer": "4.5.0",
|
|
160
|
+
"webpack-cli": "4.9.2",
|
|
161
|
+
"webpack-dev-server": "^4.6.0",
|
|
162
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
163
|
+
"webpack-merge": "5.8.0",
|
|
164
|
+
"workbox-webpack-plugin": "^6.4.1",
|
|
165
|
+
"yamljs": "0.3.0"
|
|
166
|
+
},
|
|
167
|
+
"devDependencies": {
|
|
168
|
+
"@commitlint/cli": "^19.8.0",
|
|
169
|
+
"@types/autoprefixer": "10.2.0",
|
|
170
|
+
"@types/cli-progress": "3.11.5",
|
|
171
|
+
"@types/colors": "1.2.1",
|
|
172
|
+
"@types/commander": "2.12.2",
|
|
173
|
+
"@types/compression-webpack-plugin": "9.1.1",
|
|
174
|
+
"@types/copy-webpack-plugin": "10.1.0",
|
|
175
|
+
"@types/css-minimizer-webpack-plugin": "3.2.1",
|
|
176
|
+
"@types/extract-zip": "2.0.1",
|
|
177
|
+
"@types/glob": "^8.1.0",
|
|
178
|
+
"@types/html-webpack-plugin": "3.2.9",
|
|
179
|
+
"@types/inquirer": "9.0.7",
|
|
180
|
+
"@types/less": "3.0.6",
|
|
181
|
+
"@types/mini-css-extract-plugin": "2.5.1",
|
|
182
|
+
"@types/node": "14.18.47",
|
|
183
|
+
"@types/progress": "2.0.7",
|
|
184
|
+
"@types/progress-bar-webpack-plugin": "2.1.5",
|
|
185
|
+
"@types/react": "19.1.2",
|
|
186
|
+
"@types/react-dom": "19.1.2",
|
|
187
|
+
"@types/react-refresh": "0.14.6",
|
|
188
|
+
"@types/rimraf": "4.0.5",
|
|
189
|
+
"@types/speed-measure-webpack-plugin": "1.3.6",
|
|
190
|
+
"@types/typescript": "2.0.0",
|
|
191
|
+
"@types/unzip": "0.1.4",
|
|
192
|
+
"@types/webpack": "5.28.5",
|
|
193
|
+
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
194
|
+
"@types/webpack-dev-server": "4.7.2",
|
|
195
|
+
"@types/webpack-merge": "5.0.0",
|
|
196
|
+
"@types/yamljs": "0.2.34",
|
|
197
|
+
"commitlint-config-ali": "^1.1.0",
|
|
198
|
+
"eslint": "^8.56.0",
|
|
199
|
+
"eslint-config-ali": "^15.1.0",
|
|
200
|
+
"eslint-config-prettier": "^9.1.0",
|
|
201
|
+
"eslint-plugin-prettier": "^5.3.1",
|
|
202
|
+
"html-webpack-tags-plugin": "^3.0.0",
|
|
203
|
+
"husky": "^8.0.3",
|
|
204
|
+
"lint-staged": "^15.5.1",
|
|
205
|
+
"prettier": "^3.5.3",
|
|
206
|
+
"prettier-config-ali": "^1.3.4"
|
|
207
|
+
},
|
|
208
|
+
"email": "296963166@qq.com"
|
|
209
|
+
}
|