The website for Horrific Development. https://horrific.dev/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
658 B

  1. .PHONY: all build serve clean
  2. NPM := pnpm
  3. NPX := pnpx
  4. ifeq (, $(shell which pnpm))
  5. NPM = npm
  6. NPX = npx
  7. endif
  8. DESTDIR?=out
  9. all: serve
  10. install: package-install.lock
  11. package-install.lock: package.json
  12. ${NPM} install
  13. touch package-install.lock
  14. public/global.css: public/global.scss
  15. ${NPX} sass $^ $@.tmp
  16. ${NPX} -p postcss-cli@7.1.2 postcss $@.tmp -o $@
  17. rm $@.tmp $@.tmp.map
  18. build: install public/global.css
  19. serve: install public/global.css
  20. ${NPM} run dev
  21. docker:
  22. docker-compose build web
  23. prune:
  24. docker image prune -f
  25. docker container prune -f
  26. docker network prune -f
  27. clean: prune
  28. rm package-install.lock
  29. rm -rf node_modules/
  30. rm -r _site/