-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 812 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (19 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
test: ## Run offline tests
npx vitest --reporter=verbose --run
test-live: ## Run offline and live API tests (needs API keys)
EMBED_LIVE=1 npx vitest --reporter=verbose --run
test-watch: ## Run tests in watch mode
npx vitest
types: ## Generate .d.ts from JSDoc
npx tsc --declaration --allowJs --emitDeclarationOnly --skipLibCheck \
--target es2020 --module nodenext --moduleResolution nodenext \
--strict false --esModuleInterop true --outDir ./types src/index.js
types-clean: ## Remove generated types
rm -rf types
clean: ## Remove node_modules
rm -rf node_modules
install: ## Install dependencies
npm install
.PHONY: help
help: ## Show help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-20s\033[0m %s\n", $$1, $$2}'