@qingtian/qtcli 1.0.3 → 1.0.4-beta.1

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/dist/package.json CHANGED
@@ -1,200 +1,200 @@
1
- {
2
- "name": "@qingtian/qtcli",
3
- "version": "1.0.2-beta.7",
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
- "start": "node --max-old-space-size=8192 ./node_modules/.bin/ts-node ./bin/cli.ts"
43
- },
44
- "commitlint": {
45
- "extends": [
46
- "ali"
47
- ]
48
- },
49
- "lint-staged": {
50
- "*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix",
51
- "*.{css,less,scss}": "stylelint --fix",
52
- "*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write"
53
- },
54
- "eslintConfig": {
55
- "extends": [
56
- "ali/typescript/node"
57
- ]
58
- },
59
- "stylelint": {},
60
- "dependencies": {
61
- "@babel/cli": "7.24.6",
62
- "@babel/core": "^7.16.0",
63
- "@babel/plugin-proposal-class-properties": "7.18.6",
64
- "@babel/plugin-proposal-decorators": "7.18.2",
65
- "@babel/plugin-proposal-object-rest-spread": "7.20.7",
66
- "@babel/plugin-syntax-flow": "7.24.6",
67
- "@babel/plugin-transform-block-scoping": "7.27.0",
68
- "@babel/plugin-transform-flow-strip-types": "7.24.6",
69
- "@babel/plugin-transform-runtime": "7.18.5",
70
- "@babel/plugin-transform-typescript": "7.24.6",
71
- "@babel/preset-env": "7.18.2",
72
- "@babel/preset-react": "7.17.12",
73
- "@babel/preset-typescript": "7.17.12",
74
- "@commitlint/cli": "^19.8.0",
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-loader": "^8.2.3",
81
- "babel-plugin-import": "1.13.8",
82
- "babel-plugin-named-asset-import": "^0.3.8",
83
- "babel-preset-react-app": "^10.0.1",
84
- "bfj": "^7.0.2",
85
- "browserslist": "^4.18.1",
86
- "camelcase": "^6.2.1",
87
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
88
- "cli-progress": "3.12.0",
89
- "colors": "1.4.0",
90
- "commander": "12.1.0",
91
- "commitlint-config-ali": "1.1.0",
92
- "compressing": "1.10.0",
93
- "compression-webpack-plugin": "10.0.0",
94
- "copy-webpack-plugin": "11.0.0",
95
- "core-js": "3.23.0",
96
- "cross-env": "7.0.3",
97
- "css-loader": "^6.5.1",
98
- "css-minimizer-webpack-plugin": "^3.2.0",
99
- "dotenv": "^10.0.0",
100
- "dotenv-expand": "^5.1.0",
101
- "eslint": "^8.3.0",
102
- "eslint-config-ali": "15.1.0",
103
- "eslint-config-prettier": "9.1.0",
104
- "eslint-config-react-app": "^7.0.1",
105
- "eslint-plugin-prettier": "5.2.6",
106
- "eslint-webpack-plugin": "^3.1.1",
107
- "extract-zip": "2.0.1",
108
- "file-loader": "^6.2.0",
109
- "fs-extra": "^10.0.0",
110
- "glob-all": "3.3.1",
111
- "html-webpack-plugin": "^5.5.0",
112
- "html-webpack-tags-plugin": "^3.0.0",
113
- "husky": "8.0.3",
114
- "identity-obj-proxy": "^3.0.0",
115
- "inquirer": "8.0.0",
116
- "less": "4.1.3",
117
- "less-loader": "11.0.0",
118
- "lint-staged": "15.5.1",
119
- "mini-css-extract-plugin": "^2.7.6",
120
- "postcss": "^8.4.38",
121
- "postcss-flexbugs-fixes": "^5.0.2",
122
- "postcss-loader": "^6.2.1",
123
- "postcss-normalize": "^10.0.1",
124
- "postcss-preset-env": "^7.0.1",
125
- "prettier": "3.5.3",
126
- "prettier-config-ali": "1.3.2",
127
- "progress": "2.0.3",
128
- "progress-bar-webpack-plugin": "2.1.0",
129
- "prompts": "^2.4.2",
130
- "purgecss-webpack-plugin": "4.1.3",
131
- "react": "^18.2.0",
132
- "react-app-polyfill": "^3.0.0",
133
- "react-dev-utils": "^12.0.1",
134
- "react-dom": "^18.2.0",
135
- "react-refresh": "^0.11.0",
136
- "resolve": "^1.20.0",
137
- "resolve-url-loader": "^4.0.0",
138
- "rimraf": "5.0.7",
139
- "sass": "1.70.0",
140
- "sass-loader": "^12.3.0",
141
- "semver": "^7.3.5",
142
- "source-map-loader": "^3.0.0",
143
- "speed-measure-webpack-plugin": "1.5.0",
144
- "style-loader": "^3.3.1",
145
- "stylelint": "16.19.1",
146
- "stylelint-config-ali": "2.1.2",
147
- "stylelint-prettier": "5.0.3",
148
- "tailwindcss": "^3.0.2",
149
- "terser-webpack-plugin": "^5.2.5",
150
- "thread-loader": "3.0.4",
151
- "ts-node": "10.9.2",
152
- "typescript": "4.7.3",
153
- "unzip": "0.1.11",
154
- "url-loader": "4.1.1",
155
- "webpack": "^5.64.4",
156
- "webpack-bundle-analyzer": "4.5.0",
157
- "webpack-cli": "4.9.2",
158
- "webpack-dev-server": "^4.6.0",
159
- "webpack-manifest-plugin": "^4.0.2",
160
- "webpack-merge": "5.8.0",
161
- "workbox-webpack-plugin": "^6.4.1",
162
- "xlsx": "^0.18.5",
163
- "yamljs": "0.3.0"
164
- },
165
- "devDependencies": {
166
- "@types/autoprefixer": "10.2.0",
167
- "@types/cli-progress": "3.11.5",
168
- "@types/colors": "1.2.1",
169
- "@types/commander": "2.12.2",
170
- "@types/compression-webpack-plugin": "9.1.1",
171
- "@types/copy-webpack-plugin": "10.1.0",
172
- "@types/css-minimizer-webpack-plugin": "3.2.1",
173
- "@types/extract-zip": "2.0.1",
174
- "@types/glob": "^8.1.0",
175
- "@types/html-webpack-plugin": "3.2.9",
176
- "@types/inquirer": "9.0.7",
177
- "@types/less": "3.0.6",
178
- "@types/mini-css-extract-plugin": "2.5.1",
179
- "@types/node": "14.18.47",
180
- "@types/progress": "2.0.7",
181
- "@types/progress-bar-webpack-plugin": "2.1.5",
182
- "@types/react": "19.1.2",
183
- "@types/react-dom": "19.1.2",
184
- "@types/react-refresh": "0.14.6",
185
- "@types/rimraf": "4.0.5",
186
- "@types/speed-measure-webpack-plugin": "1.3.6",
187
- "@types/typescript": "2.0.0",
188
- "@types/unzip": "0.1.4",
189
- "@types/webpack": "5.28.5",
190
- "@types/webpack-bundle-analyzer": "4.7.0",
191
- "@types/webpack-dev-server": "4.7.2",
192
- "@types/webpack-merge": "5.0.0",
193
- "@types/yamljs": "0.2.34",
194
- "babel-jest": "^27.4.2",
195
- "jest": "^27.4.3",
196
- "jest-resolve": "^27.4.2",
197
- "jest-watch-typeahead": "^1.0.0"
198
- },
199
- "email": "296963166@qq.com"
200
- }
1
+ {
2
+ "name": "@qingtian/qtcli",
3
+ "version": "1.0.4-beta.1",
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
+ "start": "node --max-old-space-size=8192 ./node_modules/.bin/ts-node ./bin/cli.ts"
43
+ },
44
+ "commitlint": {
45
+ "extends": [
46
+ "ali"
47
+ ]
48
+ },
49
+ "lint-staged": {
50
+ "*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix",
51
+ "*.{css,less,scss}": "stylelint --fix",
52
+ "*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write"
53
+ },
54
+ "eslintConfig": {
55
+ "extends": [
56
+ "ali/typescript/node"
57
+ ]
58
+ },
59
+ "stylelint": {},
60
+ "dependencies": {
61
+ "@babel/cli": "7.24.6",
62
+ "@babel/core": "^7.16.0",
63
+ "@babel/plugin-proposal-class-properties": "7.18.6",
64
+ "@babel/plugin-proposal-decorators": "7.18.2",
65
+ "@babel/plugin-proposal-object-rest-spread": "7.20.7",
66
+ "@babel/plugin-syntax-flow": "7.24.6",
67
+ "@babel/plugin-transform-block-scoping": "7.27.0",
68
+ "@babel/plugin-transform-flow-strip-types": "7.24.6",
69
+ "@babel/plugin-transform-runtime": "7.18.5",
70
+ "@babel/plugin-transform-typescript": "7.24.6",
71
+ "@babel/preset-env": "7.18.2",
72
+ "@babel/preset-react": "7.17.12",
73
+ "@babel/preset-typescript": "7.17.12",
74
+ "@commitlint/cli": "^19.8.0",
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-loader": "^8.2.3",
81
+ "babel-plugin-import": "1.13.8",
82
+ "babel-plugin-named-asset-import": "^0.3.8",
83
+ "babel-preset-react-app": "^10.0.1",
84
+ "bfj": "^7.0.2",
85
+ "browserslist": "^4.18.1",
86
+ "camelcase": "^6.2.1",
87
+ "case-sensitive-paths-webpack-plugin": "^2.4.0",
88
+ "cli-progress": "3.12.0",
89
+ "colors": "1.4.0",
90
+ "commander": "12.1.0",
91
+ "commitlint-config-ali": "1.1.0",
92
+ "compressing": "1.10.0",
93
+ "compression-webpack-plugin": "10.0.0",
94
+ "copy-webpack-plugin": "11.0.0",
95
+ "core-js": "3.23.0",
96
+ "cross-env": "7.0.3",
97
+ "css-loader": "^6.5.1",
98
+ "css-minimizer-webpack-plugin": "^3.2.0",
99
+ "dotenv": "^10.0.0",
100
+ "dotenv-expand": "^5.1.0",
101
+ "eslint": "^8.3.0",
102
+ "eslint-config-ali": "15.1.0",
103
+ "eslint-config-prettier": "9.1.0",
104
+ "eslint-config-react-app": "^7.0.1",
105
+ "eslint-plugin-prettier": "5.2.6",
106
+ "eslint-webpack-plugin": "^3.1.1",
107
+ "extract-zip": "2.0.1",
108
+ "file-loader": "^6.2.0",
109
+ "fs-extra": "^10.0.0",
110
+ "glob-all": "3.3.1",
111
+ "html-webpack-plugin": "^5.5.0",
112
+ "html-webpack-tags-plugin": "^3.0.0",
113
+ "husky": "8.0.3",
114
+ "identity-obj-proxy": "^3.0.0",
115
+ "inquirer": "8.0.0",
116
+ "less": "4.1.3",
117
+ "less-loader": "11.0.0",
118
+ "lint-staged": "15.5.1",
119
+ "mini-css-extract-plugin": "^2.7.6",
120
+ "postcss": "^8.4.38",
121
+ "postcss-flexbugs-fixes": "^5.0.2",
122
+ "postcss-loader": "^6.2.1",
123
+ "postcss-normalize": "^10.0.1",
124
+ "postcss-preset-env": "^7.0.1",
125
+ "prettier": "3.5.3",
126
+ "prettier-config-ali": "1.3.2",
127
+ "progress": "2.0.3",
128
+ "progress-bar-webpack-plugin": "2.1.0",
129
+ "prompts": "^2.4.2",
130
+ "purgecss-webpack-plugin": "4.1.3",
131
+ "react": "^18.2.0",
132
+ "react-app-polyfill": "^3.0.0",
133
+ "react-dev-utils": "^12.0.1",
134
+ "react-dom": "^18.2.0",
135
+ "react-refresh": "^0.11.0",
136
+ "resolve": "^1.20.0",
137
+ "resolve-url-loader": "^4.0.0",
138
+ "rimraf": "5.0.7",
139
+ "sass": "1.70.0",
140
+ "sass-loader": "^12.3.0",
141
+ "semver": "^7.3.5",
142
+ "source-map-loader": "^3.0.0",
143
+ "speed-measure-webpack-plugin": "1.5.0",
144
+ "style-loader": "^3.3.1",
145
+ "stylelint": "16.19.1",
146
+ "stylelint-config-ali": "2.1.2",
147
+ "stylelint-prettier": "5.0.3",
148
+ "tailwindcss": "^3.0.2",
149
+ "terser-webpack-plugin": "^5.2.5",
150
+ "thread-loader": "3.0.4",
151
+ "ts-node": "10.9.2",
152
+ "typescript": "4.7.3",
153
+ "unzip": "0.1.11",
154
+ "url-loader": "4.1.1",
155
+ "webpack": "^5.64.4",
156
+ "webpack-bundle-analyzer": "4.5.0",
157
+ "webpack-cli": "4.9.2",
158
+ "webpack-dev-server": "^4.6.0",
159
+ "webpack-manifest-plugin": "^4.0.2",
160
+ "webpack-merge": "5.8.0",
161
+ "workbox-webpack-plugin": "^6.4.1",
162
+ "xlsx": "^0.18.5",
163
+ "yamljs": "0.3.0"
164
+ },
165
+ "devDependencies": {
166
+ "@types/autoprefixer": "10.2.0",
167
+ "@types/cli-progress": "3.11.5",
168
+ "@types/colors": "1.2.1",
169
+ "@types/commander": "2.12.2",
170
+ "@types/compression-webpack-plugin": "9.1.1",
171
+ "@types/copy-webpack-plugin": "10.1.0",
172
+ "@types/css-minimizer-webpack-plugin": "3.2.1",
173
+ "@types/extract-zip": "2.0.1",
174
+ "@types/glob": "^8.1.0",
175
+ "@types/html-webpack-plugin": "3.2.9",
176
+ "@types/inquirer": "9.0.7",
177
+ "@types/less": "3.0.6",
178
+ "@types/mini-css-extract-plugin": "2.5.1",
179
+ "@types/node": "14.18.47",
180
+ "@types/progress": "2.0.7",
181
+ "@types/progress-bar-webpack-plugin": "2.1.5",
182
+ "@types/react": "19.1.2",
183
+ "@types/react-dom": "19.1.2",
184
+ "@types/react-refresh": "0.14.6",
185
+ "@types/rimraf": "4.0.5",
186
+ "@types/speed-measure-webpack-plugin": "1.3.6",
187
+ "@types/typescript": "2.0.0",
188
+ "@types/unzip": "0.1.4",
189
+ "@types/webpack": "5.28.5",
190
+ "@types/webpack-bundle-analyzer": "4.7.0",
191
+ "@types/webpack-dev-server": "4.7.2",
192
+ "@types/webpack-merge": "5.0.0",
193
+ "@types/yamljs": "0.2.34",
194
+ "babel-jest": "^27.4.2",
195
+ "jest": "^27.4.3",
196
+ "jest-resolve": "^27.4.2",
197
+ "jest-watch-typeahead": "^1.0.0"
198
+ },
199
+ "email": "296963166@qq.com"
200
+ }
@@ -114,7 +114,7 @@ function outResult(_a) {
114
114
  content: 'ESLint开始执行...',
115
115
  }));
116
116
  ptime = new Date().getTime();
117
- return [4 /*yield*/, lint.lintFiles('./src')];
117
+ return [4 /*yield*/, lint.lintFiles(path_1.default.resolve(process.cwd(), './src'))];
118
118
  case 3:
119
119
  results = _j.sent();
120
120
  errorCount = results.reduce(function (sum, result) { return sum + result.errorCount; }, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qingtian/qtcli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4-beta.1",
4
4
  "description": "QTCli是一款基于node的前端工程化底座",
5
5
  "homepage": "https://gitee.com/fengrengame/qtnode#readme",
6
6
  "bugs": {