This is a basic TypeScript and esbuild dev setup created with Esbuild Runner (esr) and Nodemon along with tests using in Jest. The development and test times are significantly faster when using esbuild as opposed to tsc
.
This can be used to create a simple CLI or a full-fledged API.
- Node 14 (LTS) or above
yarn
(recommended) ornpm
- Setup using
yarn
ornpm install
-
yarn dev
: Runs the server in development mode usingesr
andnodemon
. -
yarn build
: Builds the app usingtsc
. -
yarn check
: Runs the TypeScript checker to check for any type errors. -
yarn test
: Runs the tests using Jest. -
yarn start
: Starts the built server (used in production).