This code is intended to be used as a template for quickly setting up a new project for simple scripts or coding challenges with TypeScript. It makes use of Vite and Vitest and is inspired by the Minimal TS Node Project by Jimmy Hogoboom.
- Clone this repo or download the ZIP. Just get the code on your machine somehow.
- Run
npm install
- Write your tests in
index.test.ts
- Write your code in
index.ts
- Run the tests with
npm test
- Run the code as CLI with
npm run it
If you like this project and have ideas about making it better, submit a PR!