Skip to content

Ready boilerplate project to quickly get started with TypeScript, ESLint, Prettier, Jest, Husky, Lint-Staged, and Conventional Commits.

License

Notifications You must be signed in to change notification settings

rrafaelc/ts-node-boilerplate

Repository files navigation

Typescript Node Boilerplate

This is a boilerplate project to quickly get started with TypeScript, ESLint, Prettier, Jest, Husky, Lint-Staged, and Conventional Commits.

Features

  • TypeScript for type checking and modern JavaScript features

  • ESLint and Prettier for code linting and formatting

  • Jest for unit testing

  • Husky for pre-commit and pre-push Git hooks

  • Lint-Staged for running ESLint, Prettier and jest only on changed files

  • Conventional Commits for a standardized commit message format

Getting Started

To use this boilerplate, you'll need to have Node.js and Git installed on your computer. You'll also need to have Yarn installed.

  1. Clone this repository:
git clone https://github.com/rrafaelc/ts-node-boilerplate.git
  1. Install the dependencies:
cd ts-node-boilerplate
yarn
  1. Start the development server:
yarn start:dev
  1. Run the tests:
yarn test

Known Bugs

  • When using Git on Windows, you may encounter line ending issues with files checked out from the repository. This can cause issues with ESLint and Prettier. To fix this, you can configure Git to disable autocrlf by running the following command:
# https://stackoverflow.com/a/17628353
git config --global core.autocrlf false

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Ready boilerplate project to quickly get started with TypeScript, ESLint, Prettier, Jest, Husky, Lint-Staged, and Conventional Commits.

Topics

Resources

License

Stars

Watchers

Forks