Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Makefile

.PHONY: help setup lint fmt test build release docs clean

help: ## Show this help.
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | \
sed 's/\t/ /g' | \
awk 'BEGIN {FS = ":.*?## "}; { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 }'

setup: ## Install project dependencies.
npm install

lint: ## Run ESLint.
npm run lint

fmt: ## Run Prettier.
npm run format

test: ## Run tests.
npm test

build: ## Build project.
npm run build

release: ## Bump version and publish.
npm run release

docs: ## No build step for docs; Markdown files in docs/.
@echo "No docs to build; see docs/"

clean: ## Remove build artifacts.
rm -rf dist coverage