website-docs/Makefile

28 lines
987 B
Makefile
Raw Permalink Normal View History

2024-03-02 18:26:21 +01:00
.PHONY: dist help
dist: help
help:
@echo "make install-deps -> Install all dependencies"
2024-07-24 02:03:23 +02:00
@echo " update-deps -> Update all dependencies"
2024-03-02 18:26:21 +01:00
@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
2024-07-24 02:03:23 +02:00
update-deps:
pnpm install @docusaurus/{core,plugin-client-redirects,plugin-content-docs,plugin-sitemap,preset-classic,module-type-aliases,tsconfig,types}@latest
2024-03-02 18:26:21 +01:00
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
2024-07-24 02:03:23 +02:00
rm -rf "~/.cache/pnpm" "~/.local/share/pnpm" "~/.local/state/pnpm"