build with just, upd. todo
This commit is contained in:
parent
deef7c5839
commit
9dede341e8
6 changed files with 84 additions and 9767 deletions
34
justfile
Normal file
34
justfile
Normal file
|
@ -0,0 +1,34 @@
|
|||
help:
|
||||
echo compile builds both ends
|
||||
echo produce builds, minifies, optimises both ends
|
||||
echo run produces before executing the result
|
||||
echo elm builds the elm
|
||||
echo haskell builds the haskell
|
||||
echo format-elm formats the elm
|
||||
echo produce-elm builds, minifies, optimises the elm
|
||||
|
||||
compile: elm haskell
|
||||
|
||||
produce: produce-elm haskell
|
||||
echo REMEMBER to RESTART elmskell.service TO UPDATE SITE IN PLACE
|
||||
|
||||
run: produce
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue