mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-02 10:15:55 +00:00
* switched to CORS from JSONP * improved style * separated almost all JavaScript from the HTML * minify & combine JavaScript using closure & cat * fleshed out Makefile
11 lines
221 B
Bash
Executable file
11 lines
221 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
setopt extendedglob
|
|
|
|
for js (assets/*.js~*.min.js) {
|
|
target=${js%.js}.min.js
|
|
if [ ! -f $target ] || [ $js -nt $target ]; then
|
|
echo "$js -> $target"
|
|
closure-compiler < $js >| $target
|
|
fi
|
|
}
|