T.J. Crowder on Nostr: #[0] A company wanted me to do a small closed-source command-line tool, and I thought ...
npub1pgs0t3ppz4wtsnpkh4aqfxgy6u644ntkzg4ju6gha2v6qsvpltaqt7gyss (npub1pgs…gyss) A company wanted me to do a small closed-source command-line tool, and I thought "Hey, let's use Deno and compile it!" Looks like if I want to minify and avoid having the TypeScript source in the executable, I can't _just_ use `deno compile` (fair enough), but this process seems like a winner:
1. Use `deno_emit` to build a JavaScript bundle
2. Use `esbuild` to minify it
3. Use `deno compile` to create the executable
Sound about right, or am I missing a trick?
TIA!
npub1ts8x45snjlqc67rup54g554g8xxthrx4pw0wzrrnmltpvz22hhqq32xugm (npub1ts8…xugm)
1. Use `deno_emit` to build a JavaScript bundle
2. Use `esbuild` to minify it
3. Use `deno compile` to create the executable
Sound about right, or am I missing a trick?
TIA!
npub1ts8x45snjlqc67rup54g554g8xxthrx4pw0wzrrnmltpvz22hhqq32xugm (npub1ts8…xugm)