obsidian-rollover-daily-todos
obsidian-rollover-daily-todos copied to clipboard
Replace rollup with esbuild and hotreload.
pnpm es:dev builds to dist as well as checks the env for $OBSIDIAN_DEV_VAULT pnpm es:prod builds to dist only
Prospects
if hotreload plugin is on, the new system will check if its the newest files via the modified time (copy-newer) and reload.
Challenges
- Many of the ts files were fully renamed. The bootup entry file cannot import two files of the same name (after ts compiling).
- fophidian is my take on pjwrebly's https://github.com/ophidian-lib/build system which is basically a daisy chain of pipes with each pipe taking the form of apply((config, dataCarryover) => { // config is the current state of the config , you wont need it. injectPlugins is the workhorse for injecting plugins, either multiple or a single esbuild type plugin. return dataCarryover // the dataCarryover is any data you want to carry over to the next pipe });