-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 810 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 810 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
27
28
29
30
31
32
33
34
35
YARN ?= $(shell which yarn)
PKG ?= $(if $(YARN),$(YARN),$(shell which npm))
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: package.json ## Install dependencies
@$(PKG) install
@cd example/node && $(PKG) install
watch: ## continuously compile ES6 files to JS
@yarn vite build --watch
test: ## Launch unit tests
@yarn run test
watch-test: ## Launch unit tests and watch for changes
@yarn run watch-test
check: ## Lint and format the source code
@yarn run check
lint: ## Lint the source code
@yarn run lint
format: ## Format the source code
@yarn run format
run: ## Launch server with example data
@yarn run server
build: ## Build production release
@yarn run build