Skip to content

Commit ef92437

Browse files
committed
First concept of the Time Tree Obsidian plugin: Use YAML metadata to store elapsed time from note and its linking notes
1 parent cc0db71 commit ef92437

File tree

7 files changed

+327
-170
lines changed

7 files changed

+327
-170
lines changed

esbuild.config.mjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const context = await esbuild.context({
1616
banner: {
1717
js: banner,
1818
},
19-
entryPoints: ["main.ts"],
19+
entryPoints: ["src/main.ts"],
2020
bundle: true,
2121
external: [
2222
"obsidian",
@@ -45,18 +45,19 @@ const context = await esbuild.context({
4545
}),
4646
],
4747
format: "cjs",
48+
watch: !prod,
4849
target: "es2018",
4950
logLevel: "info",
5051
sourcemap: prod ? false : "inline",
5152
treeShaking: true,
5253
outfile: "main.js",
53-
minify: prod,
54+
// minify: prod,
5455
})
5556
.catch(() => process.exit(1));
5657

57-
if (prod) {
58-
await context.rebuild();
59-
process.exit(0);
60-
} else {
61-
await context.watch();
62-
}
58+
// if (prod) {
59+
// await context.rebuild();
60+
// process.exit(0);
61+
// } else {
62+
// await context.watch();
63+
// }

main.ts

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)