Add a build.sh at the branch root that does the makefile-style jobs through a case statement, with full --help. It converts our plugin source into the two files condenser ships (frontend.js + backend.mjs).
Subcommands to start: help, dev (run against sibling condenser-app), shim (generate frontend.tsx/backend.ts entry from our src), build (esbuild to dist), package (zip the two files), clean. Keep real logic in the script, not inline, and reuse functions across subcommands.
Reference: condenser-plugin/scripts/build.mjs and dev.mjs show the esbuild + sibling-resolution pattern.
Add a build.sh at the branch root that does the makefile-style jobs through a case statement, with full --help. It converts our plugin source into the two files condenser ships (frontend.js + backend.mjs).
Subcommands to start: help, dev (run against sibling condenser-app), shim (generate frontend.tsx/backend.ts entry from our src), build (esbuild to dist), package (zip the two files), clean. Keep real logic in the script, not inline, and reuse functions across subcommands.
Reference: condenser-plugin/scripts/build.mjs and dev.mjs show the esbuild + sibling-resolution pattern.