A minimal TypeScript boilerplate with strict configurations and top-level await enabled, designed to kickstart your TypeScript projects with best practices.
- Strict TypeScript Configurations: Ensures better code quality, type safety, and maintainability.
- Top-Level Await: Simplifies asynchronous programming by enabling top-level await.
- ESLint & Prettier: Preconfigured linting and code formatting tools to enforce consistent code style.
We are using pnpm, if you don't want or can't use, feel free to stick with npm or yarn.
-
Clone this repository to your local machine:
git clone https://github.com/mend3/ts-boilerplate.git
-
Install dependencies:
- Install pnpm:
npm install -g pnpm # if pnpm is not installed
- Install dependencies:
pnpm i
- Install pnpm:
-
Start coding!
- To start the project:
pnpm start
- To build the project:
pnpm build
To run the main file and test your code in development mode, use:
pnpm dev
This project is licensed under the MIT License. See the LICENSE file for more information.