Post

Building and deploying a React app to a static hosting service like Amazon S3 and CloudFront is a good example for a CLI in TypeScript. Adding Listr2 and Execa to create an easily extensible CLI with `build` and `deploy` command. asciinema.org/a/DFlVSxmoWD...

asciinema.orguntitledRecorded by zirkelc
Chris Cook@zirkelc.dev

I like to build local CLIs for my monorepo to automate build and deploy tasks that require more than just a few commands executed as npm scripts. By combining pnpm, commander.js and tsx, I can create executable programs in Typescript: ./cli <command> All the magic is in the shebang.

0 reposts1 like

No replies yet.