Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 641 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 641 Bytes

TypeScript Template

Getting started

$ npm install

Run

$ tsx src/index.ts

Build

$ npm run build

Test

$ npm run test

Lint

$ npm run lint # lint check
$ npm run lint:fix # lint write

Git hooks

Tests

npx husky add .husky/pre-commit "npm test" 
npx husky add .husky/pre-commit "npm run lint" 
git add .husky/pre-commit

Commit message

npx husky add .husky/commit-msg  'npx --no -- commitlint --edit ${1}'
npm pkg set scripts.commitlint="commitlint --edit"
npx husky add .husky/commit-msg 'npm run commitlint ${1}'