-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakefile
39 lines (27 loc) · 872 Bytes
/
makefile
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
36
37
38
39
SHELL := /bin/bash
#
# Makefile
#
.PHONY: help
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# ------------------------------------------------------------------------------------------------------------
install: ## Installs everything
pnpm install
update: ## Updates all packages from package.json
pnpm update
dev: ## Starts playground in development mode
pnpm dev
clean: ## Cleans all dependencies
rm -rf node_modules
# ------------------------------------------------------------------------------------------------------------
pr: ## Runs all pr scripts
make vitest
make lint
vitest: ## Runs all unit tests
pnpm test
lint: ## Runs the linter
pnpm lint
lint-fix: ## Runs the linter and fixes all fixable problems
pnpm pnpm lint --fix