Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavel-durov/project.template.ts
Template for TypeScript projects
https://github.com/pavel-durov/project.template.ts
Last synced: about 1 month ago
JSON representation
Template for TypeScript projects
- Host: GitHub
- URL: https://github.com/pavel-durov/project.template.ts
- Owner: Pavel-Durov
- License: mit
- Created: 2023-10-02T17:21:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-24T07:07:36.000Z (3 months ago)
- Last Synced: 2024-10-02T10:07:57.663Z (about 2 months ago)
- Language: JavaScript
- Size: 231 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript Template
## Getting started
```shell
$ npm install
```## Run
```shell
$ tsx src/index.ts
```## Build
```shell
$ npm run build
```## Test
```shell
$ npm run test
```## Lint
```shell
$ npm run lint # lint check
$ npm run lint:fix # lint write
```## Git hooks
### Tests
```shell
npx husky add .husky/pre-commit "npm test"
npx husky add .husky/pre-commit "npm run lint"
git add .husky/pre-commit
```### Commit message
```shell
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}'
```