@das-fed/cli 7.0.7-hot.72 → 7.0.7-hot.74
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import inquirer from"inquirer";import glob from"fast-glob";import{dirname,resolve}from"path";import{fileURLToPath}from"url";import fs from"fs-extra";import{consola}from"consola";import{execSync}from"child_process";let __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),getPackageJson=()=>{var e=resolve(__dirname,"../../../package.json");return fs.existsSync(e)?fs.readJSONSync(e):{}};export default{alias:["create","create-app","-c"],handle:async e=>{var a=getPackageJson(),
|
|
1
|
+
import inquirer from"inquirer";import glob from"fast-glob";import{dirname,resolve}from"path";import{fileURLToPath}from"url";import fs from"fs-extra";import{consola}from"consola";import{execSync}from"child_process";let __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),getPackageJson=()=>{var e=resolve(__dirname,"../../../package.json");return fs.existsSync(e)?fs.readJSONSync(e):{}};export default{alias:["create","create-app","-c"],handle:async e=>{var a=getPackageJson(),r=(consola.box(`Using ${a.name} v`+a.version),consola.info("create app for @das-fed"),consola.warn("必须使用 pnpm 作为依赖安装工具"),(await inquirer.prompt([{name:"appType",type:"list",message:"请选择应用类型:",choices:[{name:"子应用 (microApp)",value:"microApp"},{name:"独立应用 (singleApp)",value:"singleApp"}],default:"microApp"}])).appType),a=(await inquirer.prompt([{name:"inputName",type:"input",message:"请输入应用名称,要求全小写(请与git地址最后一级保持一致,比如:http://xxx/payment-center.git;则为payment-center)"}])).inputName;a||(consola.error("应用名称必填!"),process.exit());var[i]=a.replace(/\.git$/,"").split("/").slice(-1),o="microApp"===r,s=o?"enterpriseadmin/"+i:"",p=(o?consola.success(`子应用名称为: ${s} (enterpriseadmin为默认加入的前缀)`):consola.success("独立应用名称为: "+i),(await inquirer.prompt([{name:"version",type:"input",message:"请输入需要安装的@das-fed版本"}])).version),a=(p||(consola.error("@das-fed版本必填!"),process.exit()),(await inquirer.prompt([{name:"overwrite",type:"confirm",message:"初始化项目将覆盖当前目录的文件及文件夹,是否继续?"}])).overwrite);if(!a)return process.exit();var t,n=process.cwd(),c=resolve(__dirname,"./template");for(t of await glob(["**/**"],{cwd:c,dot:!0})){var l=resolve(n,t);await fs.copy(resolve(c,t),l,{overwrite:!0})}var m,a=resolve(n,"./packages/microapp"),f=resolve(n,"./packages/"+i),a=(await fs.ensureDir(f),await fs.copy(a,f,{overwrite:!0}),await fs.remove(a),await glob(["**/**"],{cwd:f,dot:!0}));for(m of a){var d=resolve(f,m);if((-1<m.indexOf("vite.config.ts")||-1<m.indexOf("public/config.js")||-1<m.indexOf("src/das-web-app")||-1<m.indexOf("src/main.dev.ts")||-1<m.indexOf("src/main.ts")||-1<m.indexOf("package.json"))&&await fs.pathExists(d)){let e=(await fs.readFile(d)).toString();e=e.replaceAll("%appType%",r).replaceAll("%packageName%",i).replaceAll("%version%",p),e=o?e.replaceAll("%microAppName%",s):e.replace(/\s*microAppName:\s*['"]%microAppName%['"],?/g,""),await fs.writeFile(d,e)}}o||(await fs.remove(resolve(f,"src/das-web-app.ts")),await fs.remove(resolve(f,"src/main.dev.ts")));try{consola.info("正在安装项目依赖,请稍候..."),execSync("pnpm install",{cwd:n,stdio:"inherit"})}catch(e){consola.warn("依赖自动安装未成功,请在项目根目录手动执行 pnpm install")}console.log(""),consola.success("项目初始化完成!")}};
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@das-fed-web-apps/%packageName%",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": "true",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "das-cli dev",
|
|
8
|
-
"build": "das-cli build",
|
|
9
|
-
"preview": "vite preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@ant-design/icons-vue": "^6.1.0",
|
|
13
|
-
"@antv/x6": "^2.13.1",
|
|
14
|
-
"@antv/x6-plugin-clipboard": "^2.1.6",
|
|
15
|
-
"@antv/x6-plugin-dnd": "^2.0.6",
|
|
16
|
-
"@antv/x6-plugin-export": "^2.1.6",
|
|
17
|
-
"@antv/x6-plugin-history": "^2.2.3",
|
|
18
|
-
"@antv/x6-plugin-keyboard": "^2.2.1",
|
|
19
|
-
"@antv/x6-plugin-scroller": "^2.0.10",
|
|
20
|
-
"@antv/x6-plugin-selection": "^2.1.7",
|
|
21
|
-
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
22
|
-
"@antv/x6-plugin-transform": "^2.1.7",
|
|
23
|
-
"@antv/x6-vue-shape": "^2.1.1",
|
|
24
|
-
"@das-fed/ui": "%version%",
|
|
25
|
-
"@das-fed/utils": "%version%",
|
|
26
|
-
"@das-fed/web": "%version%",
|
|
27
|
-
"@element-plus/icons-vue": "^2.0.10",
|
|
28
|
-
"@highlightjs/vue-plugin": "^2.1.0",
|
|
29
|
-
"@microsoft/signalr": "^7.0.9",
|
|
30
|
-
"@types/element-resize-detector": "^1.1.3",
|
|
31
|
-
"@vue/repl": "^1.3.5",
|
|
32
|
-
"@vue/shared": "^3.3.4",
|
|
33
|
-
"@wangeditor/editor": "^5.1.23",
|
|
34
|
-
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
35
|
-
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
|
36
|
-
"ant-design-vue": "3.2.20",
|
|
37
|
-
"async-validator": "^4.2.5",
|
|
38
|
-
"axios": "^1.1.3",
|
|
39
|
-
"bignumber.js": "^9.1.1",
|
|
40
|
-
"dayjs": "^1.11.6",
|
|
41
|
-
"echarts": "5.3.2",
|
|
42
|
-
"element-plus": "2.4.2",
|
|
43
|
-
"element-resize-detector": "^1.2.4",
|
|
44
|
-
"event-source-polyfill": "^1.0.31",
|
|
45
|
-
"fs-extar": "0.0.1-security",
|
|
46
|
-
"highlight.js": "^11.7.0",
|
|
47
|
-
"js-cookie": "^3.0.5",
|
|
48
|
-
"jso-2": "^1.0.0",
|
|
49
|
-
"json-bigint": "^1.0.0",
|
|
50
|
-
"jsonp": "^0.2.1",
|
|
51
|
-
"konva": "^8.4.2",
|
|
52
|
-
"lodash": "^4.17.21",
|
|
53
|
-
"lodash-es": "^4.17.21",
|
|
54
|
-
"lodash-unified": "1.0.2",
|
|
55
|
-
"monaco-editor": "^0.34.1",
|
|
56
|
-
"mpegts.js": "^1.7.2",
|
|
57
|
-
"nanoid": "3.2.0",
|
|
58
|
-
"overlayscrollbars": "^2.2.0",
|
|
59
|
-
"pdfjs-dist": "2.6.347",
|
|
60
|
-
"perfect-scrollbar": "^1.5.5",
|
|
61
|
-
"pinia": "^2.0.24",
|
|
62
|
-
"pinyin-pro": "^3.16.3",
|
|
63
|
-
"qiankun": "^2.8.4",
|
|
64
|
-
"qs": "^6.11.0",
|
|
65
|
-
"sortablejs": "^1.15.0",
|
|
66
|
-
"tailwindcss": "^3.2.4",
|
|
67
|
-
"type-fest": "2.14.0",
|
|
68
|
-
"vue": "^3.4.21",
|
|
69
|
-
"vue-router": "^4.3.0",
|
|
70
|
-
"vue-virtual-scroller": "2.0.0-beta.8"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
74
|
-
"@types/fs-extra": "^9.0.13",
|
|
75
|
-
"@types/js-cookie": "^3.0.3",
|
|
76
|
-
"@types/jsonp": "^0.2.1",
|
|
77
|
-
"@types/lodash": "^4.14.194",
|
|
78
|
-
"@types/lodash-es": "^4.17.9",
|
|
79
|
-
"@types/node": "20.2.1",
|
|
80
|
-
"@types/qs": "^6.9.7",
|
|
81
|
-
"@types/sortablejs": "^1.15.0",
|
|
82
|
-
"@vitejs/plugin-basic-ssl": "^1.0.1",
|
|
83
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
84
|
-
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
85
|
-
"@vueuse/core": "^9.6.0",
|
|
86
|
-
"archiver": "^6.0.0",
|
|
87
|
-
"autoprefixer": "^10.4.13",
|
|
88
|
-
"chalk": "4",
|
|
89
|
-
"chokidar": "^3.5.3",
|
|
90
|
-
"concurrently": "^7.6.0",
|
|
91
|
-
"decomment": "^0.9.5",
|
|
92
|
-
"express": "^4.18.2",
|
|
93
|
-
"fast-glob": "^3.3.2",
|
|
94
|
-
"fast-typescript-to-jsonschema": "^0.0.8",
|
|
95
|
-
"fs-extra": "^10.1.0",
|
|
96
|
-
"inquirer": "8",
|
|
97
|
-
"json-merger": "^1.1.9",
|
|
98
|
-
"json-schema-to-typescript": "^11.0.2",
|
|
99
|
-
"json5": "^2.2.3",
|
|
100
|
-
"jszip": "^3.10.1",
|
|
101
|
-
"minimist": "^1.2.8",
|
|
102
|
-
"minio": "^7.1.2",
|
|
103
|
-
"pinia-plugin-persistedstate": "^3.0.1",
|
|
104
|
-
"postcss": "^8.4.21",
|
|
105
|
-
"prettier-plugin-organize-imports": "^3.2.2",
|
|
106
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
107
|
-
"sass": "^1.56.1",
|
|
108
|
-
"ts-morph": "^17.0.1",
|
|
109
|
-
"ts-node": "^10.9.1",
|
|
110
|
-
"typescript": "^5.4.3",
|
|
111
|
-
"unplugin-auto-import": "^0.15.3",
|
|
112
|
-
"unplugin-vue-components": "^0.24.1",
|
|
113
|
-
"uppercamelcase": "^3.0.0",
|
|
114
|
-
"vite": "^5.2.7",
|
|
115
|
-
"vite-plugin-html": "^3.2.0",
|
|
116
|
-
"vite-plugin-qiankun": "^1.0.15",
|
|
117
|
-
"vite-plugin-svg-icons": "^2.0.1",
|
|
118
|
-
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
119
|
-
"vue-tsc": "^1.6.5",
|
|
120
|
-
"@das-fed/cli": "%version%"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@das-fed-web-apps/%packageName%",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": "true",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "das-cli dev",
|
|
8
|
+
"build": "das-cli build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@ant-design/icons-vue": "^6.1.0",
|
|
13
|
+
"@antv/x6": "^2.13.1",
|
|
14
|
+
"@antv/x6-plugin-clipboard": "^2.1.6",
|
|
15
|
+
"@antv/x6-plugin-dnd": "^2.0.6",
|
|
16
|
+
"@antv/x6-plugin-export": "^2.1.6",
|
|
17
|
+
"@antv/x6-plugin-history": "^2.2.3",
|
|
18
|
+
"@antv/x6-plugin-keyboard": "^2.2.1",
|
|
19
|
+
"@antv/x6-plugin-scroller": "^2.0.10",
|
|
20
|
+
"@antv/x6-plugin-selection": "^2.1.7",
|
|
21
|
+
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
22
|
+
"@antv/x6-plugin-transform": "^2.1.7",
|
|
23
|
+
"@antv/x6-vue-shape": "^2.1.1",
|
|
24
|
+
"@das-fed/ui": "%version%",
|
|
25
|
+
"@das-fed/utils": "%version%",
|
|
26
|
+
"@das-fed/web": "%version%",
|
|
27
|
+
"@element-plus/icons-vue": "^2.0.10",
|
|
28
|
+
"@highlightjs/vue-plugin": "^2.1.0",
|
|
29
|
+
"@microsoft/signalr": "^7.0.9",
|
|
30
|
+
"@types/element-resize-detector": "^1.1.3",
|
|
31
|
+
"@vue/repl": "^1.3.5",
|
|
32
|
+
"@vue/shared": "^3.3.4",
|
|
33
|
+
"@wangeditor/editor": "^5.1.23",
|
|
34
|
+
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
35
|
+
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
|
36
|
+
"ant-design-vue": "3.2.20",
|
|
37
|
+
"async-validator": "^4.2.5",
|
|
38
|
+
"axios": "^1.1.3",
|
|
39
|
+
"bignumber.js": "^9.1.1",
|
|
40
|
+
"dayjs": "^1.11.6",
|
|
41
|
+
"echarts": "5.3.2",
|
|
42
|
+
"element-plus": "2.4.2",
|
|
43
|
+
"element-resize-detector": "^1.2.4",
|
|
44
|
+
"event-source-polyfill": "^1.0.31",
|
|
45
|
+
"fs-extar": "0.0.1-security",
|
|
46
|
+
"highlight.js": "^11.7.0",
|
|
47
|
+
"js-cookie": "^3.0.5",
|
|
48
|
+
"jso-2": "^1.0.0",
|
|
49
|
+
"json-bigint": "^1.0.0",
|
|
50
|
+
"jsonp": "^0.2.1",
|
|
51
|
+
"konva": "^8.4.2",
|
|
52
|
+
"lodash": "^4.17.21",
|
|
53
|
+
"lodash-es": "^4.17.21",
|
|
54
|
+
"lodash-unified": "1.0.2",
|
|
55
|
+
"monaco-editor": "^0.34.1",
|
|
56
|
+
"mpegts.js": "^1.7.2",
|
|
57
|
+
"nanoid": "3.2.0",
|
|
58
|
+
"overlayscrollbars": "^2.2.0",
|
|
59
|
+
"pdfjs-dist": "2.6.347",
|
|
60
|
+
"perfect-scrollbar": "^1.5.5",
|
|
61
|
+
"pinia": "^2.0.24",
|
|
62
|
+
"pinyin-pro": "^3.16.3",
|
|
63
|
+
"qiankun": "^2.8.4",
|
|
64
|
+
"qs": "^6.11.0",
|
|
65
|
+
"sortablejs": "^1.15.0",
|
|
66
|
+
"tailwindcss": "^3.2.4",
|
|
67
|
+
"type-fest": "2.14.0",
|
|
68
|
+
"vue": "^3.4.21",
|
|
69
|
+
"vue-router": "^4.3.0",
|
|
70
|
+
"vue-virtual-scroller": "2.0.0-beta.8"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
74
|
+
"@types/fs-extra": "^9.0.13",
|
|
75
|
+
"@types/js-cookie": "^3.0.3",
|
|
76
|
+
"@types/jsonp": "^0.2.1",
|
|
77
|
+
"@types/lodash": "^4.14.194",
|
|
78
|
+
"@types/lodash-es": "^4.17.9",
|
|
79
|
+
"@types/node": "20.2.1",
|
|
80
|
+
"@types/qs": "^6.9.7",
|
|
81
|
+
"@types/sortablejs": "^1.15.0",
|
|
82
|
+
"@vitejs/plugin-basic-ssl": "^1.0.1",
|
|
83
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
84
|
+
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
85
|
+
"@vueuse/core": "^9.6.0",
|
|
86
|
+
"archiver": "^6.0.0",
|
|
87
|
+
"autoprefixer": "^10.4.13",
|
|
88
|
+
"chalk": "4",
|
|
89
|
+
"chokidar": "^3.5.3",
|
|
90
|
+
"concurrently": "^7.6.0",
|
|
91
|
+
"decomment": "^0.9.5",
|
|
92
|
+
"express": "^4.18.2",
|
|
93
|
+
"fast-glob": "^3.3.2",
|
|
94
|
+
"fast-typescript-to-jsonschema": "^0.0.8",
|
|
95
|
+
"fs-extra": "^10.1.0",
|
|
96
|
+
"inquirer": "8",
|
|
97
|
+
"json-merger": "^1.1.9",
|
|
98
|
+
"json-schema-to-typescript": "^11.0.2",
|
|
99
|
+
"json5": "^2.2.3",
|
|
100
|
+
"jszip": "^3.10.1",
|
|
101
|
+
"minimist": "^1.2.8",
|
|
102
|
+
"minio": "^7.1.2",
|
|
103
|
+
"pinia-plugin-persistedstate": "^3.0.1",
|
|
104
|
+
"postcss": "^8.4.21",
|
|
105
|
+
"prettier-plugin-organize-imports": "^3.2.2",
|
|
106
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
107
|
+
"sass": "^1.56.1",
|
|
108
|
+
"ts-morph": "^17.0.1",
|
|
109
|
+
"ts-node": "^10.9.1",
|
|
110
|
+
"typescript": "^5.4.3",
|
|
111
|
+
"unplugin-auto-import": "^0.15.3",
|
|
112
|
+
"unplugin-vue-components": "^0.24.1",
|
|
113
|
+
"uppercamelcase": "^3.0.0",
|
|
114
|
+
"vite": "^5.2.7",
|
|
115
|
+
"vite-plugin-html": "^3.2.0",
|
|
116
|
+
"vite-plugin-qiankun": "^1.0.15",
|
|
117
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
|
118
|
+
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
119
|
+
"vue-tsc": "^1.6.5",
|
|
120
|
+
"@das-fed/cli": "%version%"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
File without changes
|