maquette-bulma/project.zsh

21 lines
578 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package=maquette-bulma
version=0.1.0
find . | grep -v '^\./node_modules/' | grep .ls$ | while read file_ls; do
file_js="${file_ls%.ls}.js"
targets=($file_js)
type[$file_js]=livescript
sources[$file_js]=$file_ls
done
# FIXME: Well need an upstream update. The “livescript” module currently
# uses browserify, which we dont want.
function livescript.build {
write "${target}: ${sources[$target]} $(dirdep $target)"
write "\t@echo '$(LSC $target)'"
write "\t${Q}npx lsc -pc ${sources[$target]} > $target || (i=\$\$?; rm $target; return \$\$i)"
write
}