Update build
This commit is contained in:
rodič
e9c0cd62ed
revize
4a9ddb5b0f
|
@ -9,9 +9,8 @@ const options = Object.fromEntries(
|
||||||
}).filter((x) => x),
|
}).filter((x) => x),
|
||||||
);
|
);
|
||||||
|
|
||||||
const deconf = new DeConfEngine();
|
const deconf = new DeConfEngine(options);
|
||||||
console.log(options)
|
await deconf.init();
|
||||||
await deconf.init(options);
|
|
||||||
|
|
||||||
const output = await deconf.build();
|
const output = await deconf.build();
|
||||||
if (output) {
|
if (output) {
|
||||||
|
|
|
@ -40,7 +40,7 @@ export class DeConfEngine {
|
||||||
}
|
}
|
||||||
async build() {
|
async build() {
|
||||||
await emptyDir(this.outputDir);
|
await emptyDir(this.outputDir);
|
||||||
console.log(this.tag)
|
console.log(`Tag: ${this.tag}`);
|
||||||
await _textWrite([this.outputDir, "TAG"], this.tag);
|
await _textWrite([this.outputDir, "TAG"], this.tag);
|
||||||
for (const pkg of this.entries) {
|
for (const pkg of this.entries) {
|
||||||
console.table(pkg.data.events.map((e) => e.data.index), ["name"]);
|
console.table(pkg.data.events.map((e) => e.data.index), ["name"]);
|
||||||
|
@ -53,6 +53,8 @@ export class DeConfEngine {
|
||||||
name: p.data.index.name,
|
name: p.data.index.name,
|
||||||
dataUrl: p.data.index.dataUrl,
|
dataUrl: p.data.index.dataUrl,
|
||||||
exploreUrl: p.data.index.exploreUrl,
|
exploreUrl: p.data.index.exploreUrl,
|
||||||
|
__time: new Date(),
|
||||||
|
__tag: this.tag,
|
||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
// write schemas
|
// write schemas
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu