maquette-bulma/project.zsh

21 lines
578 B
Bash
Raw Normal View History

2020-01-03 10:09:45 +01:00
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)'"
2020-01-04 15:53:48 +01:00
write "\t${Q}npx lsc -pc ${sources[$target]} > $target || (i=\$\$?; rm $target; return \$\$i)"
2020-01-03 10:09:45 +01:00
write
}