-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (37 loc) · 1.52 KB
/
Makefile
File metadata and controls
40 lines (37 loc) · 1.52 KB
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
40
PNPM = pnpm
RUN = $(PNPM) run
ARGS =
# ------------------------------------------------------------------------------
# MAIN COMMANDS (Public API)
# ------------------------------------------------------------------------------
release: ; $(RUN) release ## Publish a new version
build: ; $(RUN) build $(ARGS) ## Compile the project
dev: ; $(RUN) dev $(ARGS) ## Start development server
start: ; $(RUN) start $(ARGS) ## Run the app in production mode
lint: ; $(RUN) lint ## Run linter (ESLint/Prettier)
fmt: ; $(RUN) fmt ## Run formater (Prettier)
test: ; $(RUN) test $(ARGS) ## Run test suite
types: ; $(RUN) check-types ## Run TypeScript type checking
clean: ; $(RUN) clean ## Remove build artifacts and temp files
pack: ; $(RUN) pack ## Create a package tarball
docs: ; $(RUN) docs ## Generate technical documentation
install: ; $(PNPM) install ## Install project dependencies
update: ; $(PNPM) update --latest ## Update dependencies to latest versions
# ------------------------------------------------------------------------------
# ALIASES (Developer Ergonomics)
# ------------------------------------------------------------------------------
i: install
u: update
b: build
d: dev
s: start
l: lint
f: fmt
t: test
ts: types
c: clean
pk: pack
do: docs
# .PHONY ensures these commands run even if a folder with the same name exists
.PHONY: release build dev start lint test types clean pack docs install update \
i u b d s l f t ts c pk do