@ibiz-template/full-code-template 0.7.41-alpha.2 → 0.7.41-alpha.5
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 +1 -0
- package/static/CHANGELOG.md +1 -0
- package/static/README.md +19 -10
- package/static/index.html +1 -1
- package/static/package.json +15 -13
- package/static/pnpm-lock.yaml +1128 -646
- package/static/public/dingtalk.html +1 -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/model/model-loader.ts +26 -15
- package/template/@macro/control/include.hbs +4 -0
- 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.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.5",
|
|
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
|
@@ -33,5 +33,6 @@ execSync(
|
|
|
33
33
|
`${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
34
|
);
|
|
35
35
|
copyFiles(`${outputPath}/src/publish/app`, `${outputPath}/public/static/app`);
|
|
36
|
+
fs.rmSync(`${outputPath}/src/publish/app`, { recursive: true, force: true }); // 递归删除目录及其内容
|
|
36
37
|
|
|
37
38
|
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命令参数,其中m指的是模型路径,t指的是模板路径,o指的是输出目录,app指的是应用名称。
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# "pub": "ibizlab pub -m /root/workspace/ibizlab-plm/model -t ./template -o ./src/publish --app plmweb && npm run prettier && npm run postpub",
|
|
65
|
+
$ pnpm pub
|
|
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.41-alpha.
|
|
4
|
+
"version": "0.7.41-alpha.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
"preview": "vite preview",
|
|
10
10
|
"lint": "eslint 'src/**/*.tsx' 'src/**/*.ts' 'src/**/*.vue'",
|
|
11
11
|
"lint:style": "stylelint 'src/**/*.scss'",
|
|
12
|
-
"pub":
|
|
12
|
+
"pub:temp":"publish -p .",
|
|
13
|
+
"pub:code": "generate -m /root/workspace/ibizlab-plm/model -o ./ --app plmweb -tv 0.7.41-alpha.5 && npm run prettier && npm run postpub",
|
|
13
14
|
"postpub": "cp -r ./src/publish/app/* ./public/static/app && rm -rf ./src/publish/app/*",
|
|
14
|
-
"compute-pkg": "ibiz-temp compute-pkg -m /root/workspace/plm
|
|
15
|
+
"compute-pkg": "ibiz-temp compute-pkg -m /root/workspace/ibizlab-plm/model --app plmweb",
|
|
15
16
|
"download-pkg": "ibiz-temp download-pkg",
|
|
16
17
|
"prettier": "prettier --ignore-path '' 'src/publish/**/*.(ts|vue|tsx)' -w",
|
|
17
18
|
"clear": "rm -rf src/publish"
|
|
@@ -22,17 +23,16 @@
|
|
|
22
23
|
"@ibiz-template-plugin/ai-chat": "^0.0.28",
|
|
23
24
|
"@ibiz-template-plugin/bi-report": "0.0.26",
|
|
24
25
|
"@ibiz-template-plugin/data-view": "0.0.4",
|
|
25
|
-
"@ibiz-template/
|
|
26
|
-
"@ibiz-template/core": "0.7.41-alpha.2",
|
|
26
|
+
"@ibiz-template/core": "0.7.41-alpha.18",
|
|
27
27
|
"@ibiz-template/devtool": "0.0.11",
|
|
28
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
29
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
28
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.21",
|
|
29
|
+
"@ibiz-template/runtime": "0.7.41-alpha.21",
|
|
30
30
|
"@ibiz-template/theme": "0.7.39",
|
|
31
|
-
"@ibiz-template/vue3-components": "0.7.41-alpha.
|
|
32
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
33
|
-
"@ibiz-template/web-theme": "3.
|
|
34
|
-
"@ibiz/model-core": "^0.1.
|
|
35
|
-
"@ibiz/rt-model-api": "^0.2.
|
|
31
|
+
"@ibiz-template/vue3-components": "0.7.41-alpha.21",
|
|
32
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.21",
|
|
33
|
+
"@ibiz-template/web-theme": "3.8.0",
|
|
34
|
+
"@ibiz/model-core": "^0.1.81",
|
|
35
|
+
"@ibiz/rt-model-api": "^0.2.79",
|
|
36
36
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
37
37
|
"@wangeditor/editor": "^5.1.23",
|
|
38
38
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
@@ -60,7 +60,9 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@commitlint/cli": "^17.8.0",
|
|
62
62
|
"@commitlint/config-conventional": "^17.8.0",
|
|
63
|
-
"@
|
|
63
|
+
"@ibiz-template/cli": "^0.3.23",
|
|
64
|
+
"@ibiz-template/full-code-generator": "^0.0.3",
|
|
65
|
+
"@ibizlab/cli": "^0.2.29",
|
|
64
66
|
"@types/lodash-es": "^4.17.10",
|
|
65
67
|
"@types/node": "^20.8.7",
|
|
66
68
|
"@types/nprogress": "^0.2.2",
|