25 lines
712 B
Makefile
25 lines
712 B
Makefile
all: frontend backend
|
|
|
|
produce: frontend-produce backend
|
|
echo REMEMBER to RESTART elmskell.service TO UPDATE SITE IN PLACE
|
|
|
|
run:
|
|
stack exec ~/.local/bin/hs-server-exe
|
|
|
|
backend:
|
|
cd backend && stack install
|
|
|
|
frontend: frontend-format
|
|
cd frontend && elm make src/Main.elm --output=../assets/js/main.js
|
|
rm -rf frontend/elm-stuff
|
|
|
|
frontend-produce: frontend-format
|
|
cd frontend && elm make src/Main.elm --optimize --output=../assets/js/tmp.js
|
|
rm -rf frontend/elm-stuff
|
|
esbuild assets/js/tmp.js --minify --target=es5 --outfile=assets/js/main.js
|
|
rm assets/js/tmp.js
|
|
|
|
frontend-format:
|
|
elm-format frontend/src/Main.elm --yes
|
|
|
|
.PHONY: all produce run start backend frontend frontend-produce frontend-format clean
|