elm-crossword-front/justfile
2023-01-07 23:57:19 -05:00

21 lines
No EOL
732 B
Makefile

watch: build
elm-live src/Leaderboard.elm --open -- --output=leaderboard.js
build:
elm make src/Leaderboard.elm --output=leaderboard.js
install:
pnpm global add elm-format elm-test elm-oracle elm-live
debug:
elm-live src/Leaderboard.elm --open -- --debug --output=leaderboard.js
build_release: format
elm make src/Leaderboard.elm --optimize --output=leaderboard.opt.js
uglifyjs leaderboard.opt.js --compress "pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe" | uglifyjs --mangle --output=leaderboard.js
deploy: build_release
rsync index.html leaderboard.js anthonycicchetti.com:/var/www/crossword.anthonycicchetti.com/public
format:
elm-format --yes src