This commit is contained in:
Frieder Hannenheim 2025-01-29 18:09:52 +01:00
parent d8eaa98e36
commit 154f04c202
7 changed files with 190 additions and 17 deletions

View file

@ -4,15 +4,21 @@ alias c := clean
build:
mkdir -p build
cat src/data/* | toml2json > build/gewichtungen.json
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 dist/index.html
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