pleshevski.ru/Makefile

25 lines
305 B
Makefile
Raw Permalink Normal View History

2024-07-24 17:15:05 +03:00
PREFIX ?= dist
2023-03-15 15:44:18 +03:00
2024-08-05 17:44:15 +03:00
.PHONY: help
2024-07-24 17:15:05 +03:00
help:
cat Makefile
2023-03-15 15:44:18 +03:00
2024-08-05 17:44:15 +03:00
.PHONY: build
2024-07-24 17:15:05 +03:00
build:
2024-09-06 01:11:51 +03:00
pnpm run build --dest $(PREFIX)
2023-03-15 15:44:18 +03:00
2024-08-05 17:44:15 +03:00
.PHONY: install
2024-07-24 17:15:05 +03:00
install: build
2024-08-05 17:44:15 +03:00
.PHONY: dev
2024-07-24 17:15:05 +03:00
dev:
2024-09-06 01:11:51 +03:00
pnpm run dev
2024-07-24 17:15:05 +03:00
2024-08-05 17:44:15 +03:00
.PHONY: deps
2024-07-24 17:15:05 +03:00
deps:
pnpm install
2023-03-15 15:44:18 +03:00
2024-08-05 17:44:15 +03:00
.PHONY: init-git-hooks
2024-07-25 16:59:34 +03:00
init-git-hooks:
ln -sf $(PWD)/scripts/pre-commit $(PWD)/.git/hooks/pre-commit