Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stemmlerjs/simple-typescript-starter
The most basic TypeScript starter I could think of
https://github.com/stemmlerjs/simple-typescript-starter
starter-project typescript
Last synced: about 16 hours ago
JSON representation
The most basic TypeScript starter I could think of
- Host: GitHub
- URL: https://github.com/stemmlerjs/simple-typescript-starter
- Owner: stemmlerjs
- Created: 2019-08-29T04:52:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T13:56:26.000Z (8 months ago)
- Last Synced: 2024-10-31T11:37:10.878Z (13 days ago)
- Topics: starter-project, typescript
- Language: TypeScript
- Homepage: https://khalilstemmler.com/blogs/typescript/node-starter-project/
- Size: 8.73 MB
- Stars: 1,019
- Watchers: 18
- Forks: 380
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🧰 Simple TypeScript Starter | 2024
> We talk about a lot of **advanced Node.js and TypeScript** concepts on [the blog](https://khalilstemmler.com), particularly focused around Domain-Driven Design and large-scale enterprise application patterns. However, I received a few emails from readers that were interested in seeing what a basic TypeScript starter project looks like. So I've put together just that.
### Features
- Minimal
- TypeScript v4
- Testing with Jest
- Linting with Eslint and Prettier
- Pre-commit hooks with Husky
- VS Code debugger scripts
- Local development with Nodemon### Scripts
#### `npm run start:dev`
Starts the application in development using `nodemon` and `ts-node` to do hot reloading.
#### `npm run start`
Starts the app in production by first building the project with `npm run build`, and then executing the compiled JavaScript at `build/index.js`.
#### `npm run build`
Builds the app at `build`, cleaning the folder first.
#### `npm run test`
Runs the `jest` tests once.
#### `npm run test:dev`
Run the `jest` tests in watch mode, waiting for file changes.
#### `npm run prettier-format`
Format your code.
#### `npm run prettier-watch`
Format your code in watch mode, waiting for file changes.