-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 610 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 610 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
36
# Makefile for Node.js project
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Available targets:"
@echo " make build - Run build"
@echo " make dev - Run dev"
@echo " make lint - Run eslint"
@echo " make clean - Clean up project"
@echo " make help - Display this help message"
.PHONY: dev
dev: node_modules
pnpm run dev
.PHONY: build
build: node_modules
pnpm run build
.PHONY: lint
lint:
pnpm run lint
.PHONY: format
format:
pnpm run format
.PHONY: clean
clean:
pnpm run clean
# Install dependencies if 'node_modules' is missing
node_modules: pnpm-lock.yaml
pnpm install