@ibiz-template/full-code-template 0.0.33 → 0.7.40-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/full-code-template",
3
- "version": "0.0.33",
3
+ "version": "0.7.40-alpha.1",
4
4
  "description": "vue3全代码模版包,根据包内容生成项目代码。",
5
5
  "bin": {
6
6
  "ibz-full-template": "src/index.js"
@@ -16,7 +16,7 @@
16
16
  "author": "ibiz",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@ibizlab/cli": "^0.2.4",
19
+ "@ibizlab/cli": "^0.2.24",
20
20
  "commander": "^12.0.0",
21
21
  "prettier": "^3.2.5"
22
22
  }
package/src/index.js CHANGED
@@ -8,8 +8,6 @@ const { copyFiles } = require('./copy');
8
8
  const staticPath = path.resolve(path.join(__dirname, '../static'));
9
9
  const templatePath = path.resolve(path.join(__dirname, '../template'));
10
10
 
11
- console.log(__dirname, staticPath, templatePath);
12
-
13
11
  program
14
12
  .option('-m, --model <model-path>', '模型目录')
15
13
  .option('-o, --output <output-path>', '输出目录, 默认输出: 模板目录/out')
@@ -21,9 +19,8 @@ const { model, output, app } = program.opts();
21
19
  const modelPath = path.resolve(model);
22
20
  const outputPath = path.resolve(output);
23
21
 
24
- console.log(modelPath, outputPath);
25
-
26
22
  copyFiles(staticPath, outputPath);
23
+ console.log(`拷贝静态资源成功,静态资源路径:${staticPath},输出路径:${outputPath}`);
27
24
 
28
25
  fs.renameSync(
29
26
  path.join(outputPath, '.gitignore.bak'),
@@ -35,3 +32,4 @@ const binPath = path.resolve(path.join(__dirname, '../node_modules/.bin'));
35
32
  execSync(
36
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`,
37
34
  );
35
+ console.log(`发布模板成功,模型路径:${modelPath},发布应用代码标识:${app},模板路径:${templatePath},输出路径:${outputPath}/src/publish`);
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "full-code-vue",
2
+ "name": "@ibiz-template/full-code-template",
3
3
  "private": true,
4
- "version": "0.0.33",
4
+ "version": "0.7.40-alpha.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -15,7 +15,8 @@
15
15
  "download-pkg": "ibiz-temp download-pkg",
16
16
  "prettier": "prettier --ignore-path '' 'src/publish/**/*.(ts|vue|tsx)' -w",
17
17
  "clear": "rm -rf src/publish",
18
- "publish":"publish -p ."
18
+ "publish":"publish -p .",
19
+ "generate":"generate -m /root/workspace/plm-community-plugin/plmcom-core/src/main/resources/model/cn/ibizlab/plmcom -o ./src/publish --app plmcomweb -tv 0.0.33"
19
20
  },
20
21
  "dependencies": {
21
22
  "@antv/x6": "^2.18.1",