mirror of
https://github.com/selectstarfromusers/obsidian-task-manager.git
synced 2026-07-22 06:05:56 +00:00
Board and Focus view modes with customizable buckets, secondary grouping by any frontmatter property, inline #task tracking from notes with bidirectional sync, drag-and-drop, completion animations, ARIA accessibility, and mobile-friendly touch targets. Co-authored-by: Isaac
24 lines
557 B
JavaScript
24 lines
557 B
JavaScript
import esbuild from "esbuild";
|
|
import { existsSync, mkdirSync } from "fs";
|
|
|
|
const isWatch = process.argv.includes("--watch");
|
|
|
|
const context = await esbuild.context({
|
|
entryPoints: ["src/main.ts"],
|
|
bundle: true,
|
|
external: ["obsidian", "electron", "@codemirror/*", "@lezer/*"],
|
|
format: "cjs",
|
|
target: "es2020",
|
|
logLevel: "info",
|
|
sourcemap: "inline",
|
|
treeShaking: true,
|
|
outfile: "main.js",
|
|
});
|
|
|
|
if (isWatch) {
|
|
await context.watch();
|
|
console.log("Watching for changes...");
|
|
} else {
|
|
await context.rebuild();
|
|
await context.dispose();
|
|
}
|