Skip to content

leon19/ts-node-starter

Repository files navigation

TypeScript NodeJS Starter Pack

Development

The project use husky and lint-staged for linting and fixing possible errors on source code before commit

Git hooks scripts are installed after running npm install the first time

npm run build:dev

Compile typescript files from the src folder without emitting the sources

npm run build

Compile typescript files from the src folder, excluding *.test.ts and *.spec.ts file, inside the dist folder

npm run clean

Remove the following directories/files

  • .tmp
  • dist

npm test

Run *.test.ts and *.spec.ts files under the src folder

npm run cover

The same as npm test and generates coverages reports in .tmp/reports/coverage. Exit with code > 0 on error

npm run lint

  • Format and lint typescript and json files according to biome.json.
  • Format markdown files according to .pretterrc.json.

npm run release

  • Bump package.json version accordingly to the commit messages
  • Generate changelog for the new version from the commit messages
  • Commit package.json and CHANGELOG.md with the new changes
  • Create a git tag with the new version
  • You'll need to execute git push --follow-tags origin main after generating a release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published