verteilen-core 1.4.13 → 1.4.14
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.
|
@@ -80,16 +80,24 @@ const PluginBuild = (root, plugins, templates, version = "1.0.0", language = [])
|
|
|
80
80
|
delete manifest.acl;
|
|
81
81
|
delete manifest.permission;
|
|
82
82
|
console.log("Output manifest.json");
|
|
83
|
+
if (fs.existsSync(m_path))
|
|
84
|
+
fs.unlinkSync(m_path);
|
|
83
85
|
fs.writeFileSync(m_path, JSON.stringify(manifest, null, 4));
|
|
84
86
|
console.log("Output project templates");
|
|
85
87
|
templates.projects.forEach(item => {
|
|
86
88
|
const result = item.template((0, interface_1.CreateDefaultProject)());
|
|
87
|
-
|
|
89
|
+
const n_patn = path.join(root_p, `${item.filename}.json`);
|
|
90
|
+
if (fs.existsSync(n_patn))
|
|
91
|
+
fs.unlinkSync(n_patn);
|
|
92
|
+
fs.writeFileSync(n_patn, JSON.stringify(result, null, 4), 'utf-8');
|
|
88
93
|
});
|
|
89
94
|
console.log("Output database templates");
|
|
90
95
|
templates.databases.forEach(item => {
|
|
91
96
|
const result = item.template();
|
|
92
|
-
|
|
97
|
+
const n_patn = path.join(root_d, `${item.filename}.json`);
|
|
98
|
+
if (fs.existsSync(n_patn))
|
|
99
|
+
fs.unlinkSync(n_patn);
|
|
100
|
+
fs.writeFileSync(n_patn, JSON.stringify(result, null, 4), 'utf-8');
|
|
93
101
|
});
|
|
94
102
|
};
|
|
95
103
|
exports.PluginBuild = PluginBuild;
|
package/package.json
CHANGED
|
@@ -46,21 +46,26 @@ export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGen
|
|
|
46
46
|
delete manifest.acl
|
|
47
47
|
delete manifest.permission
|
|
48
48
|
console.log("Output manifest.json")
|
|
49
|
+
if(fs.existsSync(m_path)) fs.unlinkSync(m_path)
|
|
49
50
|
fs.writeFileSync(m_path, JSON.stringify(manifest, null, 4))
|
|
50
51
|
|
|
51
52
|
console.log("Output project templates")
|
|
52
53
|
templates.projects.forEach(item => {
|
|
53
54
|
const result:Project = item.template(CreateDefaultProject())
|
|
55
|
+
const n_patn = path.join(root_p, `${item.filename}.json`)
|
|
56
|
+
if(fs.existsSync(n_patn)) fs.unlinkSync(n_patn)
|
|
54
57
|
fs.writeFileSync(
|
|
55
|
-
|
|
58
|
+
n_patn,
|
|
56
59
|
JSON.stringify(result, null, 4), 'utf-8')
|
|
57
60
|
})
|
|
58
61
|
|
|
59
62
|
console.log("Output database templates")
|
|
60
63
|
templates.databases.forEach(item => {
|
|
61
64
|
const result:Array<DatabaseContainer> = item.template()
|
|
65
|
+
const n_patn = path.join(root_d, `${item.filename}.json`)
|
|
66
|
+
if(fs.existsSync(n_patn)) fs.unlinkSync(n_patn)
|
|
62
67
|
fs.writeFileSync(
|
|
63
|
-
|
|
68
|
+
n_patn,
|
|
64
69
|
JSON.stringify(result, null, 4), 'utf-8')
|
|
65
70
|
})
|
|
66
71
|
}
|