update deploy

This commit is contained in:
tree🌴 2023-10-08 01:57:19 +02:00
parent 430b589751
commit e24ae2bb6c
3 changed files with 5 additions and 6670 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
.DS_Store
.DS_Store
dist

6667
dist/bundle.json vendored

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,4 @@
import { emptyDir } from "https://deno.land/std@0.203.0/fs/empty_dir.ts";
import { W3PData } from "./w3pdata.js";
const w3pd = new W3PData();
@ -6,9 +7,9 @@ await w3pd.init();
const outputDir = "./dist";
try {
await Deno.mkdir(outputDir);
await emptyDir(outputDir);
} catch {}
const bundleFn = `${outputDir}/bundle.json`;
const bundleFn = `${outputDir}/index.json`;
await Deno.writeTextFile(bundleFn, JSON.stringify(w3pd.data, null, 2));
console.log(`Bundle writed: ${bundleFn}`);