32 lines
851 B
Makefile
Executable file
32 lines
851 B
Makefile
Executable file
produce: produce-elm haskell
|
|
echo "REMEMBER to RESTART elmskell.service TO UPDATE SITE IN PLACE"
|
|
echo "REMEMBER to RUN sudo iptables-apply -t 60 /etc/iptables/iptables.rules IF YOU HAVEN'T SINCE RESTART"
|
|
|
|
types: haskell
|
|
rm -rf frontend/src/ElmskellTypes/Generated
|
|
stack exec ~/.local/bin/hs-server-exe
|
|
|
|
compile: elm haskell
|
|
|
|
run: produce exec
|
|
|
|
exec:
|
|
stack exec ~/.local/bin/hs-server-exe
|
|
|
|
haskell:
|
|
cd backend && stack install
|
|
|
|
elm:
|
|
cd frontend && elm make src/Main.elm --output=../assets/js/main.js
|
|
rm -rf frontend/elm-stuff
|
|
|
|
produce-elm:
|
|
cd frontend && elm make src/Main.elm --optimize --output=tmp.js
|
|
mv frontend/tmp.js assets/js/tmp.js
|
|
rm -rf frontend/elm-stuff
|
|
rm assets/js/main.js
|
|
esbuild assets/js/tmp.js --minify --target=es5 --outfile=assets/js/main.js
|
|
rm assets/js/tmp.js
|
|
|
|
format-elm:
|
|
elm-format frontend/src/Main.elm --yes
|