chore: align project config with torrentclaw org standards
This commit is contained in:
parent
2f58ac7bf8
commit
8bb8e5507e
9 changed files with 367 additions and 46 deletions
34
Makefile
Normal file
34
Makefile
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
.PHONY: build test fmt lint typecheck version version-next release install-tools hooks clean
|
||||
|
||||
build:
|
||||
npm run build
|
||||
|
||||
test:
|
||||
npm test
|
||||
|
||||
fmt:
|
||||
npx prettier --write .
|
||||
|
||||
typecheck:
|
||||
npx tsc --noEmit
|
||||
|
||||
lint: fmt typecheck
|
||||
|
||||
version:
|
||||
@node -p "require('./package.json').version"
|
||||
|
||||
version-next:
|
||||
@echo "Use: npm version [patch|minor|major] --no-git-tag-version"
|
||||
|
||||
release:
|
||||
@echo "Use: npm version <patch|minor|major>, then git push origin v<version>"
|
||||
|
||||
install-tools:
|
||||
npm install
|
||||
@command -v lefthook >/dev/null 2>&1 || npm install -g lefthook
|
||||
|
||||
hooks:
|
||||
lefthook install
|
||||
|
||||
clean:
|
||||
rm -rf build coverage
|
||||
Loading…
Add table
Add a link
Reference in a new issue