mirror of
https://github.com/web3privacy/explorer-data.git
synced 2024-10-15 12:06:26 +02:00
update deploy
This commit is contained in:
parent
430b589751
commit
e24ae2bb6c
3 changed files with 5 additions and 6670 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
dist
|
6667
dist/bundle.json
vendored
6667
dist/bundle.json
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,4 @@
|
||||||
|
import { emptyDir } from "https://deno.land/std@0.203.0/fs/empty_dir.ts";
|
||||||
import { W3PData } from "./w3pdata.js";
|
import { W3PData } from "./w3pdata.js";
|
||||||
|
|
||||||
const w3pd = new W3PData();
|
const w3pd = new W3PData();
|
||||||
|
@ -6,9 +7,9 @@ await w3pd.init();
|
||||||
const outputDir = "./dist";
|
const outputDir = "./dist";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await Deno.mkdir(outputDir);
|
await emptyDir(outputDir);
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
const bundleFn = `${outputDir}/bundle.json`;
|
const bundleFn = `${outputDir}/index.json`;
|
||||||
await Deno.writeTextFile(bundleFn, JSON.stringify(w3pd.data, null, 2));
|
await Deno.writeTextFile(bundleFn, JSON.stringify(w3pd.data, null, 2));
|
||||||
console.log(`Bundle writed: ${bundleFn}`);
|
console.log(`Bundle writed: ${bundleFn}`);
|
||||||
|
|
Loading…
Reference in a new issue