verteilen-core 1.4.11 → 1.4.12

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.
@@ -1,2 +1,2 @@
1
- import { PluginGenData, PluginNode } from '../interface';
2
- export declare const PluginBuild: (root: string, plugins: PluginNode, templates: PluginGenData) => void;
1
+ import { KeyValue, PluginGenData, PluginNode } from '../interface';
2
+ export declare const PluginBuild: (root: string, plugins: PluginNode, templates: PluginGenData, version?: string, language?: Array<KeyValue>) => void;
@@ -37,7 +37,7 @@ exports.PluginBuild = void 0;
37
37
  const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
39
  const interface_1 = require("../interface");
40
- const PluginBuild = (root, plugins, templates) => {
40
+ const PluginBuild = (root, plugins, templates, version = "1.0.0", language = []) => {
41
41
  console.log("Activate Plugin Build Process...");
42
42
  const root_p = path.join(root, 'project');
43
43
  const root_d = path.join(root, 'database');
@@ -54,8 +54,8 @@ const PluginBuild = (root, plugins, templates) => {
54
54
  icon: "",
55
55
  owner: "",
56
56
  title: "",
57
- version: "1.0.0",
58
- i18n: [],
57
+ version: version,
58
+ i18n: language,
59
59
  plugins: [],
60
60
  projects: [],
61
61
  databases: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -1,8 +1,8 @@
1
1
  import * as fs from 'fs'
2
2
  import * as path from 'path'
3
- import { CreateDefaultProject, DatabaseContainer, PluginContainer, PluginGenData, PluginNode, Project } from '../interface'
3
+ import { CreateDefaultProject, DatabaseContainer, KeyValue, PluginContainer, PluginGenData, PluginNode, Project } from '../interface'
4
4
 
5
- export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGenData) => {
5
+ export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGenData, version:string = "1.0.0", language:Array<KeyValue> = []) => {
6
6
  console.log("Activate Plugin Build Process...")
7
7
  const root_p = path.join(root, 'project')
8
8
  const root_d = path.join(root, 'database')
@@ -17,8 +17,8 @@ export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGen
17
17
  icon: "",
18
18
  owner: "",
19
19
  title: "",
20
- version: "1.0.0",
21
- i18n: [],
20
+ version: version,
21
+ i18n: language,
22
22
  plugins: [],
23
23
  projects: [],
24
24
  databases: []