Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diy0r/my-ts-node-starter
My TypeScript Node.js Starter
https://github.com/diy0r/my-ts-node-starter
commitlint eslint husky-hooks prettier release-it ts
Last synced: about 1 month ago
JSON representation
My TypeScript Node.js Starter
- Host: GitHub
- URL: https://github.com/diy0r/my-ts-node-starter
- Owner: DIY0R
- License: mit
- Created: 2024-08-05T16:18:32.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-12T11:06:45.000Z (about 1 month ago)
- Last Synced: 2024-10-13T06:40:22.877Z (about 1 month ago)
- Topics: commitlint, eslint, husky-hooks, prettier, release-it, ts
- Language: JavaScript
- Homepage:
- Size: 524 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# My TypeScript Node.js Starter
When I start a new project, I notice that I end up writing the same configurations every time. So, I decided to move them to a separate repository. Now, when I start a new project, I simply clone this repository and enjoy the development process without spending time on setup.
If you like my basic configuration setup, feel free to use it in your own projects!
## Features
- **TypeScript Configuration**: Includes TypeScript settings for a smooth development experience.
- **Prettier**: Code formatting setup to keep your code clean and consistent.
- **ESLint**: Linting configuration to enforce coding standards and catch potential issues.
- **Commitlint**: Ensures that your commit messages follow the conventional commit format.
- **Husky**: Manages Git hooks for pre-commit and other Git-related tasks.
- **Release-It**: Automates versioning and release process.## Getting Started
Before starting work on the project, please take a moment to review its structure. You can customize it to fit your needs. For example, if you have a different directory structure, you can adjust the paths for source files by replacing `lib` with `src` or any other directory you use.
1. **Clone the Repository**:
```bash
git clone https://github.com/DIY0R/my-ts-node-starter.git
```2. **Navigate to the Project Directory**:
```bash
cd my-ts-node-starter
```3. **Install Dependencies**:
```bash
npm install
```4. **Start Developing**:
You can now start developing your project !
## Scripts
Here are some useful scripts available in this project:
- **Build**:
```bash
npm run build
```Compiles the TypeScript code using `tsc`.
- **Prettier**:
```bash
npm run prettier
```Checks code formatting using Prettier.
- **Prettier: Fix**:
```bash
npm run prettier:fix
```Automatically fixes code formatting issues using Prettier.
- **Lint**:
```bash
npm run lint
```Lints code using ESLint.
- **Lint: Fix**:
```bash
npm run lint:fix
```Automatically fixes linting issues using ESLint.
- **Prepare**:
```bash
npm run prepare
```Installs Git hooks using Husky.
- **Release**:
```bash
npm run release
```Automates the versioning and release process using Release-It.
## Contributions
Feel free to submit issues and pull requests if you find any bugs or have suggestions for improvements.
---
Happy coding!