@itera-web/cli 1.1.54
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 +56 -0
- package/bin/index.js +18 -0
- package/dist/commands/app/app-obs.d.ts +14 -0
- package/dist/commands/app/app-obs.js +243 -0
- package/dist/commands/app/up.d.ts +11 -0
- package/dist/commands/app/up.js +103 -0
- package/dist/commands/web/buildapp.d.ts +10 -0
- package/dist/commands/web/buildapp.js +106 -0
- package/dist/commands/web/git.d.ts +3 -0
- package/dist/commands/web/git.js +57 -0
- package/dist/commands/web/init.d.ts +4 -0
- package/dist/commands/web/init.js +129 -0
- package/dist/commands/web/packageapp.d.ts +5 -0
- package/dist/commands/web/packageapp.js +98 -0
- package/dist/commands/web/publish.d.ts +10 -0
- package/dist/commands/web/publish.js +104 -0
- package/dist/commands/web/pullprojects.d.ts +5 -0
- package/dist/commands/web/pullprojects.js +108 -0
- package/dist/commands/web/startapp.d.ts +5 -0
- package/dist/commands/web/startapp.js +98 -0
- package/dist/commands/web/updateprojects.d.ts +17 -0
- package/dist/commands/web/updateprojects.js +220 -0
- package/dist/config/util.d.ts +14 -0
- package/dist/config/util.js +88 -0
- package/dist/config/webpack.buildpackage.d.ts +1 -0
- package/dist/config/webpack.buildpackage.js +63 -0
- package/dist/config/webpack.common.d.ts +1 -0
- package/dist/config/webpack.common.js +178 -0
- package/dist/config/webpack.dev.d.ts +1 -0
- package/dist/config/webpack.dev.js +27 -0
- package/dist/config/webpack.pro.d.ts +1 -0
- package/dist/config/webpack.pro.js +43 -0
- package/dist/plugins/app.exe +0 -0
- package/dist/plugins/sortSrciptTag.d.ts +1 -0
- package/dist/plugins/sortSrciptTag.js +75 -0
- package/dist/plugins/webSocketServer.d.ts +4 -0
- package/dist/plugins/webSocketServer.js +53 -0
- package/dist/public/git.d.ts +1 -0
- package/dist/public/git.js +375 -0
- package/dist/public/hook.d.ts +18 -0
- package/dist/public/hook.js +93 -0
- package/dist/public/log.d.ts +8 -0
- package/dist/public/log.js +58 -0
- package/dist/public/public.d.ts +19 -0
- package/dist/public/public.js +425 -0
- package/dist/public/sign.d.ts +2 -0
- package/dist/public/sign.js +148 -0
- package/dist/public/smartMerge.d.ts +3 -0
- package/dist/public/smartMerge.js +31 -0
- package/dist/public/update-version.d.ts +2 -0
- package/dist/public/update-version.js +130 -0
- package/dist/public/upload-obs.d.ts +1 -0
- package/dist/public/upload-obs.js +242 -0
- package/dist/public/upload-web.d.ts +1 -0
- package/dist/public/upload-web.js +154 -0
- package/dist/store/index.d.ts +2 -0
- package/dist/store/index.js +65 -0
- package/dist/store/types.d.ts +53 -0
- package/dist/store/types.js +2 -0
- package/package.json +110 -0
- package/tsconfig.json +30 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface ConfigPath {
|
|
2
|
+
coreAppPath: string | null;
|
|
3
|
+
coreProPath: string | null;
|
|
4
|
+
finallyProPath: string | null;
|
|
5
|
+
OutputPath: string | null;
|
|
6
|
+
FilesToInstallPath: string | null;
|
|
7
|
+
destPatchZipFile: string | null;
|
|
8
|
+
destPatchFile: string | null;
|
|
9
|
+
batPath: string | null;
|
|
10
|
+
batAgentPath: string | null;
|
|
11
|
+
newDir: string | null;
|
|
12
|
+
buildPath: string | null;
|
|
13
|
+
zipPath: string | null;
|
|
14
|
+
uninstPath: string | null;
|
|
15
|
+
setupConfigPath: string | null;
|
|
16
|
+
buildNoZip: string | null;
|
|
17
|
+
latestLocalPath: string | null;
|
|
18
|
+
signAllFilesPath: string | null;
|
|
19
|
+
signToolsPath: string | null;
|
|
20
|
+
[key: string]: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateConfig {
|
|
23
|
+
latest: Record<string, any>;
|
|
24
|
+
obs: {
|
|
25
|
+
remoteURL?: string | null;
|
|
26
|
+
Bucket?: string | null;
|
|
27
|
+
access_key_id?: string | null;
|
|
28
|
+
secret_access_key?: string | null;
|
|
29
|
+
server?: string | null;
|
|
30
|
+
folder?: string | null;
|
|
31
|
+
};
|
|
32
|
+
agentsInfo: any[];
|
|
33
|
+
updateCoolFiles: any[];
|
|
34
|
+
WEB_FTP: Record<string, any>;
|
|
35
|
+
configPath: ConfigPath;
|
|
36
|
+
noCheckPath: string[];
|
|
37
|
+
deletePath: Record<string, any>;
|
|
38
|
+
signFiles: any[];
|
|
39
|
+
commend: Record<string, any>;
|
|
40
|
+
}
|
|
41
|
+
export interface MainData {
|
|
42
|
+
runtimePath: string;
|
|
43
|
+
obsClient: any | null;
|
|
44
|
+
pkg: any | null;
|
|
45
|
+
desktopDir: string;
|
|
46
|
+
hook: object;
|
|
47
|
+
ws: {
|
|
48
|
+
port: number;
|
|
49
|
+
server: any | null;
|
|
50
|
+
obj: any | null;
|
|
51
|
+
};
|
|
52
|
+
updateConfig: UpdateConfig;
|
|
53
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@itera-web/cli",
|
|
3
|
+
"version": "1.1.54",
|
|
4
|
+
"bin": {
|
|
5
|
+
"itera-cli": "./bin/index.js"
|
|
6
|
+
},
|
|
7
|
+
"scripts": {
|
|
8
|
+
"check": "ncu -u --filter \"/^@itera-web/\"",
|
|
9
|
+
"dev": "tsc -w & tsc-alias -w",
|
|
10
|
+
"build": "tsc && tsc-alias"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"webpack",
|
|
14
|
+
"react"
|
|
15
|
+
],
|
|
16
|
+
"author": "npmqg",
|
|
17
|
+
"repository": "",
|
|
18
|
+
"description": "基于Webpack的自定义CLI 用于构建 WEB 和 electron 应用",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@itera-web/rules-eslint": "^1.13.0",
|
|
22
|
+
"@itera-web/rules-prettier": "^1.12.0",
|
|
23
|
+
"@types/cheerio": "^0.22.35",
|
|
24
|
+
"@types/fs-extra": "^11.0.4",
|
|
25
|
+
"@types/inquirer": "^9.0.9",
|
|
26
|
+
"@types/node-fetch": "^2.6.13",
|
|
27
|
+
"@types/npmlog": "^7.0.0",
|
|
28
|
+
"@types/uglify-js": "^3.17.5",
|
|
29
|
+
"@types/webpack-bundle-analyzer": "^4.7.0",
|
|
30
|
+
"@types/yargs": "^17.0.33",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
32
|
+
"eslint": "^8.23.1",
|
|
33
|
+
"eslint-plugin-jest": "^27.6.3",
|
|
34
|
+
"eslint-plugin-react": "^7.31.11",
|
|
35
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
37
|
+
"prettier": "^2.4.1",
|
|
38
|
+
"tsc-alias": "^1.8.16"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@babel/core": "^7.19.1",
|
|
42
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
43
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
44
|
+
"@babel/plugin-proposal-decorators": "^7.21.0",
|
|
45
|
+
"@babel/plugin-proposal-function-bind": "^7.18.9",
|
|
46
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
47
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
48
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
49
|
+
"@babel/plugin-syntax-flow": "^7.14.5",
|
|
50
|
+
"@babel/plugin-transform-react-jsx": "^7.14.9",
|
|
51
|
+
"@babel/plugin-transform-runtime": "^7.21.4",
|
|
52
|
+
"@babel/preset-env": "^7.19.1",
|
|
53
|
+
"@babel/preset-react": "^7.18.6",
|
|
54
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
55
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
56
|
+
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
|
|
57
|
+
"@types/webpack-env": "^1.18.4",
|
|
58
|
+
"autoprefixer": "^10.4.21",
|
|
59
|
+
"babel-loader": "^8.2.5",
|
|
60
|
+
"basic-ftp": "^5.0.5",
|
|
61
|
+
"chalk": "^4.1.2",
|
|
62
|
+
"cheerio": "^0.22.0",
|
|
63
|
+
"commander": "10.0.1",
|
|
64
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
65
|
+
"cross-env": "^7.0.3",
|
|
66
|
+
"css-loader": "^6.7.1",
|
|
67
|
+
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
68
|
+
"download-git-repo": "^3.0.2",
|
|
69
|
+
"esdk-obs-nodejs": "^3.24.3",
|
|
70
|
+
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
|
71
|
+
"fs-extra": "^11.1.1",
|
|
72
|
+
"html-webpack-plugin": "^5.5.0",
|
|
73
|
+
"inquirer": "^8.0.0",
|
|
74
|
+
"javascript-obfuscator": "^4.0.2",
|
|
75
|
+
"mini-css-extract-plugin": "^2.6.0",
|
|
76
|
+
"moment": "^2.29.4",
|
|
77
|
+
"node-fetch": "^2.7.0",
|
|
78
|
+
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
79
|
+
"ora": "^5.4.1",
|
|
80
|
+
"p-limit": "^3.1.0",
|
|
81
|
+
"postcss": "^8.5.3",
|
|
82
|
+
"postcss-loader": "^6.2.1",
|
|
83
|
+
"react-refresh": "^0.14.0",
|
|
84
|
+
"sass": "^1.51.0",
|
|
85
|
+
"sass-loader": "16.0.4",
|
|
86
|
+
"speed-measure-webpack-plugin": "^1.5.0",
|
|
87
|
+
"style-loader": "^3.3.3",
|
|
88
|
+
"stylelint": "^14.3.0",
|
|
89
|
+
"stylelint-order": "^5.0.0",
|
|
90
|
+
"svg-sprite-loader": "^6.0.11",
|
|
91
|
+
"terser-webpack-plugin": "^5.3.9",
|
|
92
|
+
"ts-loader": "^9.5.1",
|
|
93
|
+
"typescript": "^5.0.4",
|
|
94
|
+
"uglify-js": "^3.17.4",
|
|
95
|
+
"webpack": "5.88.2",
|
|
96
|
+
"webpack-bundle-analyzer": "^4.10.2",
|
|
97
|
+
"webpack-cli": "^5.1.4",
|
|
98
|
+
"webpack-dev-server": "^4.15.1",
|
|
99
|
+
"webpack-merge": "^5.8.0",
|
|
100
|
+
"webpackbar": "^6.0.0",
|
|
101
|
+
"ws": "^8.18.3",
|
|
102
|
+
"yargs": "^17.7.2"
|
|
103
|
+
},
|
|
104
|
+
"publishConfig": {
|
|
105
|
+
"access": "public"
|
|
106
|
+
},
|
|
107
|
+
"engines": {
|
|
108
|
+
"node": ">=16.17.0"
|
|
109
|
+
}
|
|
110
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declarationDir": "./dist",
|
|
4
|
+
"baseUrl": "./",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"noImplicitAny": false,
|
|
8
|
+
"target": "es5",
|
|
9
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"removeComments": true,
|
|
13
|
+
"allowSyntheticDefaultImports": true,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"rootDir": "./src",
|
|
16
|
+
"outDir": "./dist",
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"moduleResolution": "node",
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"isolatedModules": true,
|
|
21
|
+
"jsx": "react",
|
|
22
|
+
"module": "CommonJS",
|
|
23
|
+
"paths": {
|
|
24
|
+
"*": ["types/*"],
|
|
25
|
+
"@/*": ["src/*"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"exclude": ["node_modules"],
|
|
29
|
+
"include": ["src/**/*"]
|
|
30
|
+
}
|