24 lines
770 B
Makefile
24 lines
770 B
Makefile
.PHONY: dist help
|
|
|
|
dist: help
|
|
help:
|
|
@echo "make install-deps -> Install all dependencies"
|
|
@echo " test -> Start a web server for development"
|
|
@echo " build -> Build static files"
|
|
@echo " clean -> Clean directory"
|
|
@echo " clean-extra -> Clean directory with extra directories/files"
|
|
install-deps:
|
|
pnpm install
|
|
test:
|
|
pnpm run start --hot-only --no-open
|
|
build:
|
|
pnpm run build --out-dir out
|
|
clean:
|
|
pnpm run clear
|
|
rm -rf "out" ".docusaurus" ".cache-loader"
|
|
clean-extra: clean
|
|
rm -rf "node_modules" "pnpm-lock.yaml"
|
|
|
|
# The nuclear option. Why is it here you might ask? I made it while creating the documentation README.md
|
|
clean-ultra: clean clean-extra
|
|
rm -rf "~/.cache/pnpm" "~/.local/share/pnpm" "~/.local/state/pnpm"
|