mirror of
https://github.com/zadam/trilium.git
synced 2026-02-26 16:43:36 +01:00
chore(share): write meta file for analysis
This commit is contained in:
parent
bbaa2db377
commit
416e11a32b
3
packages/share-theme/.gitignore
vendored
3
packages/share-theme/.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
node_modules/
|
||||
legacy/
|
||||
dist/
|
||||
.env
|
||||
.env
|
||||
meta.json
|
||||
@ -3,6 +3,7 @@ import path from "node:path";
|
||||
|
||||
import dotenv from "dotenv";
|
||||
import * as esbuild from "esbuild";
|
||||
import { writeFileSync } from "node:fs";
|
||||
|
||||
|
||||
// const fileURL = fileURLToPath(import.meta.url);
|
||||
@ -73,8 +74,9 @@ async function runBuild(watch: boolean) {
|
||||
const ctx = esbuild.context(opts);
|
||||
(await ctx).watch();
|
||||
} else {
|
||||
await esbuild.build(opts);
|
||||
const result = await esbuild.build(opts);
|
||||
const after = performance.now();
|
||||
writeFileSync("meta.json", JSON.stringify(result.metafile, null, 2));
|
||||
console.log(`Build actually took ${(after - before).toFixed(2)}ms`);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user