Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 755 Bytes

README.md

File metadata and controls

52 lines (37 loc) · 755 Bytes

TypeScript Template

Getting started

$ npm install

Env

Make sure to set up ARSENAL_GAMES_TELEGRAM_BOT_TOKEN in the runtime environment, or via the .envrc file.

Run

$ npm run start

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}'