0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/frontend/scripts/dist-view
2017-02-22 20:47:41 +01:00

14 lines
329 B
Bash
Executable file

#!/bin/sh
DIR=`dirname $0`
LEIN="$DIR/lein"
LEIN_FAST_TRAMPOLINE=y $LEIN trampoline run -m clojure.main scripts/dist-view.clj
if [ -x "$(command -v gzip)" ]; then
gzip -9c dist/js/view.js > dist/js/view.js.gz
fi
if [ -x "$(command -v bro)" ]; then
bro --verbose --input dist/js/view.js --output dist/js/view.js.br
fi