notenrechner/justfile

25 lines
528 B
Makefile
Raw Normal View History

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