@ibiz-template/full-code-template 0.7.40-alpha.7 → 0.7.41-alpha.10
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 +2 -2
- package/src/index.js +13 -8
- package/static/CHANGELOG.md +1 -0
- package/static/README.md +19 -10
- package/static/index.html +1 -1
- package/static/package.json +17 -18
- package/static/pnpm-lock.yaml +1313 -830
- package/static/public/dingtalk.html +1 -1
- package/static/public/environments/environment.js +2 -1
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.266/index.min.css +1 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.266/index.system.min.js +15 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.266/polyfills.legacy.js +4 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.270/index.min.css +1 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.270/index.system.min.js +15 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.270/polyfills.legacy.js +4 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.299/index.min.css +1 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.299/index.system.min.js +15 -0
- package/static/public/extras/js/@ibiz-template-plugin/gantt/0.1.8-alpha.299/polyfills.legacy.js +4 -0
- package/static/public/extras/js/element-plus/2.4.4/element-plus.system.min.js +9 -9
- package/static/public/extras/json/system-import.json +3 -3
- package/static/public/oauth.html +1 -1
- package/static/public/scripts/jquery.min.js +4 -0
- package/static/public/wxwork.html +1 -1
- package/static/src/components/view-shell/view-shell.tsx +4 -1
- package/static/src/main.ts +2 -1
- package/static/src/model/model-loader.ts +33 -21
- package/template/@macro/control/include.hbs +4 -0
- package/template/model/index.ts.hbs +1 -1
- package/template/pages/index.ts.hbs +7 -4
- package/static/public/extras/js/element-plus/2.4.2/element-plus.min.css +0 -1
- package/static/public/extras/js/element-plus/2.4.2/element-plus.system.min.js +0 -77
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/full-code-template",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.41-alpha.10",
|
|
4
4
|
"description": "vue3全代码模版包,根据包内容生成项目代码。",
|
|
5
5
|
"bin": {
|
|
6
6
|
"code-generator": "src/index.js"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "ibiz",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@ibizlab/cli": "^0.2.
|
|
19
|
+
"@ibizlab/cli": "^0.2.29",
|
|
20
20
|
"commander": "^12.0.0",
|
|
21
21
|
"prettier": "^3.2.5"
|
|
22
22
|
}
|
package/src/index.js
CHANGED
|
@@ -12,26 +12,31 @@ program
|
|
|
12
12
|
.option('-m, --model <model-path>', '模型目录')
|
|
13
13
|
.option('-o, --output <output-path>', '输出目录, 默认输出: 模板目录/out')
|
|
14
14
|
.option('--app [app-code-name]', '发布模式改为应用, 模型目录将识别为应用')
|
|
15
|
+
.option('--local-mode', '是否为本地模式', false)
|
|
15
16
|
.parse(process.argv);
|
|
16
17
|
|
|
17
|
-
const { model, output, app } = program.opts();
|
|
18
|
+
const { model, output, app, localMode } = program.opts();
|
|
18
19
|
|
|
19
20
|
const modelPath = path.resolve(model);
|
|
20
21
|
const outputPath = path.resolve(output);
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
// 本地模式不拷贝静态资源和调整git忽略文件,仅基于模型发布代码
|
|
24
|
+
if (!localMode) {
|
|
25
|
+
copyFiles(staticPath, outputPath);
|
|
26
|
+
console.log(`拷贝静态资源成功,静态资源路径:${staticPath},输出路径:${outputPath}`);
|
|
24
27
|
|
|
25
|
-
fs.renameSync(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
);
|
|
28
|
+
fs.renameSync(
|
|
29
|
+
path.join(outputPath, '.gitignore.bak'),
|
|
30
|
+
path.join(outputPath, '.gitignore'),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
29
33
|
|
|
30
34
|
const binPath = path.resolve(path.join(__dirname, '../node_modules/.bin'));
|
|
31
35
|
|
|
32
36
|
execSync(
|
|
33
|
-
`${binPath}/ibizlab pub -m ${modelPath} -t ${templatePath} -o ${outputPath}/src/publish --app ${app} && ${binPath}/prettier --ignore-path
|
|
37
|
+
`${binPath}/ibizlab pub -m ${modelPath} -t ${templatePath} -o ${outputPath}/src/publish --app ${app} && ${binPath}/prettier --ignore-path "" "${outputPath}/src/publish/**/*.(ts|vue|tsx)" -w`,
|
|
34
38
|
);
|
|
35
39
|
copyFiles(`${outputPath}/src/publish/app`, `${outputPath}/public/static/app`);
|
|
40
|
+
fs.rmSync(`${outputPath}/src/publish/app`, { recursive: true, force: true }); // 递归删除目录及其内容
|
|
36
41
|
|
|
37
42
|
console.log(`发布模板成功,模型路径:${modelPath},发布应用代码标识:${app},模板路径:${templatePath},输出路径:${outputPath}/src/publish`);
|
package/static/CHANGELOG.md
CHANGED
package/static/README.md
CHANGED
|
@@ -56,7 +56,16 @@ iBiz前端全代码项目基于iBiz平台产出的模型,采用了模板技术
|
|
|
56
56
|
$ pnpm install
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
### 3.
|
|
59
|
+
### 3. 发布代码
|
|
60
|
+
|
|
61
|
+
当模型更新后,通常需要发布代码查看最新效果,调整pub:code命令参数,其中m表示模型路径,o表示输出目录,app表示应用名称,tv表示模板版本,local-mode表示启用本地模式。
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# "pub:code": "generate -m /root/workspace/ibizlab-plm/model -o ./ --app plmweb -tv 0.7.41-alpha.8 --local-mode",
|
|
65
|
+
$ pnpm pub:code
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 4. 启动
|
|
60
69
|
|
|
61
70
|
在工作空间下,执行启动命令。
|
|
62
71
|
|
|
@@ -66,25 +75,25 @@ $ pnpm run dev
|
|
|
66
75
|
|
|
67
76
|
启动后,访问开发项目。
|
|
68
77
|
|
|
69
|
-
###
|
|
78
|
+
### 5. 打包
|
|
70
79
|
|
|
71
|
-
|
|
80
|
+
在工作空间下,执行打包命令。
|
|
72
81
|
|
|
73
82
|
```bash
|
|
74
|
-
$ pnpm run
|
|
83
|
+
$ pnpm run build
|
|
75
84
|
```
|
|
76
85
|
|
|
77
|
-
|
|
86
|
+
打包完成,生成最终交付产物。
|
|
78
87
|
|
|
79
|
-
###
|
|
88
|
+
### 6. 预览
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
在工作空间下,执行预览命令。
|
|
82
91
|
|
|
83
92
|
```bash
|
|
84
|
-
$ pnpm run
|
|
93
|
+
$ pnpm run preview
|
|
85
94
|
```
|
|
86
95
|
|
|
87
|
-
|
|
96
|
+
启动后,预览开发项目。
|
|
88
97
|
|
|
89
98
|
## 成果物结构
|
|
90
99
|
|
|
@@ -124,7 +133,7 @@ $ pnpm run build
|
|
|
124
133
|
|
|
125
134
|
## 如何贡献
|
|
126
135
|
|
|
127
|
-
如果你希望参与贡献,欢迎
|
|
136
|
+
如果你希望参与贡献,欢迎Pull Request,或通过自助服务群给我们报告 Bug。
|
|
128
137
|
|
|
129
138
|
强烈推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)(本指南不提供此项目的实际支持服务!)、[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545) 和 [《如何有效地报告 Bug》](https://www.chiark.greenend.org.uk/~sgtatham/bugs-cn.html)、[《如何向开源项目提交无法解答的问题》](https://zhuanlan.zhihu.com/p/25795393),更好的问题更容易获得帮助。
|
|
130
139
|
|
package/static/index.html
CHANGED
package/static/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/full-code-template",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.41-alpha.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -9,14 +9,12 @@
|
|
|
9
9
|
"preview": "vite preview",
|
|
10
10
|
"lint": "eslint 'src/**/*.tsx' 'src/**/*.ts' 'src/**/*.vue'",
|
|
11
11
|
"lint:style": "stylelint 'src/**/*.scss'",
|
|
12
|
-
"pub":
|
|
13
|
-
"
|
|
14
|
-
"compute
|
|
15
|
-
"download
|
|
12
|
+
"pub:temp":"publish -p .",
|
|
13
|
+
"pub:code": "generate -m /root/workspace/ibizlab-plm/model -o ./ --app plmweb -tv 0.7.41-alpha.10 --local-mode",
|
|
14
|
+
"compute:pkg": "ibiz-temp compute-pkg -m /root/workspace/ibizlab-plm/model --app plmweb",
|
|
15
|
+
"download:pkg": "ibiz-temp download-pkg",
|
|
16
16
|
"prettier": "prettier --ignore-path '' 'src/publish/**/*.(ts|vue|tsx)' -w",
|
|
17
|
-
"clear": "rm -rf src/publish"
|
|
18
|
-
"publish": "publish -p .",
|
|
19
|
-
"generate": "generate -m /root/workspace/plm-community-plugin/plmcom-core/src/main/resources/model/cn/ibizlab/plmcom -o ./temp --app plmcomweb -tv 0.7.40-alpha.7"
|
|
17
|
+
"clear": "rm -rf src/publish"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
20
|
"@antv/x6": "^2.18.1",
|
|
@@ -24,17 +22,16 @@
|
|
|
24
22
|
"@ibiz-template-plugin/ai-chat": "^0.0.28",
|
|
25
23
|
"@ibiz-template-plugin/bi-report": "0.0.26",
|
|
26
24
|
"@ibiz-template-plugin/data-view": "0.0.4",
|
|
27
|
-
"@ibiz-template/
|
|
28
|
-
"@ibiz-template/core": "0.7.40",
|
|
25
|
+
"@ibiz-template/core": "0.7.41-alpha.18",
|
|
29
26
|
"@ibiz-template/devtool": "0.0.11",
|
|
30
|
-
"@ibiz-template/model-helper": "0.7.
|
|
31
|
-
"@ibiz-template/runtime": "0.7.
|
|
27
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.21",
|
|
28
|
+
"@ibiz-template/runtime": "0.7.41-alpha.21",
|
|
32
29
|
"@ibiz-template/theme": "0.7.39",
|
|
33
|
-
"@ibiz-template/vue3-components": "0.7.
|
|
34
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
35
|
-
"@ibiz-template/web-theme": "3.
|
|
36
|
-
"@ibiz/model-core": "^0.1.
|
|
37
|
-
"@ibiz/rt-model-api": "^0.2.
|
|
30
|
+
"@ibiz-template/vue3-components": "0.7.41-alpha.21",
|
|
31
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.21",
|
|
32
|
+
"@ibiz-template/web-theme": "3.8.0",
|
|
33
|
+
"@ibiz/model-core": "^0.1.81",
|
|
34
|
+
"@ibiz/rt-model-api": "^0.2.79",
|
|
38
35
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
39
36
|
"@wangeditor/editor": "^5.1.23",
|
|
40
37
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
@@ -62,7 +59,9 @@
|
|
|
62
59
|
"devDependencies": {
|
|
63
60
|
"@commitlint/cli": "^17.8.0",
|
|
64
61
|
"@commitlint/config-conventional": "^17.8.0",
|
|
65
|
-
"@
|
|
62
|
+
"@ibiz-template/cli": "^0.3.28",
|
|
63
|
+
"@ibiz-template/full-code-generator": "^0.0.5",
|
|
64
|
+
"@ibizlab/cli": "^0.2.29",
|
|
66
65
|
"@types/lodash-es": "^4.17.10",
|
|
67
66
|
"@types/node": "^20.8.7",
|
|
68
67
|
"@types/nprogress": "^0.2.2",
|