diff options
Diffstat (limited to 'make.sh')
-rwxr-xr-x | make.sh | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#!/usr/bin/env sh + +make_stylesheet() { + input="css/${1}.scss" + output="css/${1}.css" + + echo "making stylesheet at \"${output}\"..." + sassc --style compressed "${input}" > "${output}" +} + +make_script() { + input="js/${1}.ts" + output="js/${1}.js" + + echo "making script at \"${output}\"..." + tsc --outFile "${output}" --target ES2022 "${input}" +} + +make_stylesheet "main" + +make_script "initImages" |