notenrechner/justfile
Frieder Hannenheim 154f04c202 styling
2025-01-29 18:09:52 +01:00

24 lines
528 B
Makefile

alias b := build
alias c := clean
build:
mkdir -p build
cat ./src/studiengänge/* | toml2json > build/studiengaenge.json
# typescript compilation depends on gewichtungen.json
tsc
mv src/rechner.js build/
# This makes the code more debuggable which is a win in my book
webpack --mode development
cp src/index.html src/stylesheet.css dist/
cp ./res/Exo2-VariableFont_wght.ttf dist/
watch:
find src/ | entr -s 'just build'
clean:
rm -rf ./build ./dist
rm ./src/rechner.js