verteilen-core 1.3.27 → 1.3.28

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.
@@ -38,6 +38,7 @@ const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
39
  const interface_1 = require("../interface");
40
40
  const PluginBuild = (plugins, templates) => {
41
+ console.log("Activate Plugin Build Process...");
41
42
  const root = path.join(__dirname, 'dist');
42
43
  const root_p = path.join(root, 'project');
43
44
  const root_d = path.join(root, 'database');
@@ -58,6 +59,7 @@ const PluginBuild = (plugins, templates) => {
58
59
  databases: []
59
60
  };
60
61
  if (fs.existsSync(m_path)) {
62
+ console.log("Detected manifest.json");
61
63
  manifest = JSON.parse(fs.readFileSync(m_path).toString());
62
64
  }
63
65
  manifest.plugins = plugins.plugins;
@@ -75,11 +77,14 @@ const PluginBuild = (plugins, templates) => {
75
77
  }));
76
78
  delete manifest.acl;
77
79
  delete manifest.permission;
80
+ console.log("Output manifest.json");
78
81
  fs.writeFileSync(m_path, JSON.stringify(manifest, null, 4));
82
+ console.log("Output project templates");
79
83
  templates.projects.forEach(item => {
80
84
  const result = item.template((0, interface_1.CreateDefaultProject)());
81
85
  fs.writeFileSync(path.join(root_p, `${item.title}.json`), JSON.stringify(result, null, 4), 'utf-8');
82
86
  });
87
+ console.log("Output database templates");
83
88
  templates.databases.forEach(item => {
84
89
  const result = item.template();
85
90
  fs.writeFileSync(path.join(root_d, `${item.title}.json`), JSON.stringify(result, null, 4), 'utf-8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.3.27",
3
+ "version": "1.3.28",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -3,6 +3,7 @@ import * as path from 'path'
3
3
  import { CreateDefaultProject, DatabaseContainer, PluginContainer, PluginGenData, PluginNode, Project } from '../interface'
4
4
 
5
5
  export const PluginBuild = (plugins:PluginNode, templates:PluginGenData) => {
6
+ console.log("Activate Plugin Build Process...")
6
7
  const root = path.join(__dirname, 'dist')
7
8
  const root_p = path.join(root, 'project')
8
9
  const root_d = path.join(root, 'database')
@@ -22,6 +23,7 @@ export const PluginBuild = (plugins:PluginNode, templates:PluginGenData) => {
22
23
  }
23
24
 
24
25
  if(fs.existsSync(m_path)){
26
+ console.log("Detected manifest.json")
25
27
  manifest = JSON.parse(fs.readFileSync(m_path).toString())
26
28
  }
27
29
 
@@ -41,14 +43,18 @@ export const PluginBuild = (plugins:PluginNode, templates:PluginGenData) => {
41
43
 
42
44
  delete manifest.acl
43
45
  delete manifest.permission
46
+ console.log("Output manifest.json")
44
47
  fs.writeFileSync(m_path, JSON.stringify(manifest, null, 4))
45
48
 
49
+ console.log("Output project templates")
46
50
  templates.projects.forEach(item => {
47
51
  const result:Project = item.template(CreateDefaultProject())
48
52
  fs.writeFileSync(
49
53
  path.join(root_p, `${item.title}.json`),
50
54
  JSON.stringify(result, null, 4), 'utf-8')
51
55
  })
56
+
57
+ console.log("Output database templates")
52
58
  templates.databases.forEach(item => {
53
59
  const result:Array<DatabaseContainer> = item.template()
54
60
  fs.writeFileSync(