A simple template for a library with built-in ts, jest, eslint, prettier support
All these features are preconfigured and you are ready to go
- Node@22
- Typescript@5 for static typing
- Tsx@4 for faster local dev
- Jest@29 for unit testing
- Eslint@9 for code linting with recommended rules
- Prettier@3 for code formatting with recommended rules
- Github templates for issue/pr/contributing
- Useful [package.json scripts]
- Simple example of usage
On github you may just click Use this template button or do the following
- clone this repo
cdinto itrm -rf .gitgit init- enjoy
Now you can change your source files and run the following commands. Feel free to tweak them as you like.
start- start local development from src/index.ts filebuild- transpile source files to es2017build:watch- transpile in watch modetest- run all checks, useful for CItest:lint- run linter against source files in src/test:types- run typechecking for source filestest:unit- run unit teststest:unit:watch- run unit tests in watch mode