0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

Use local lein for frontend dist scripts.

This commit is contained in:
Andrey Antukh 2017-02-22 20:47:41 +01:00
parent edb1a124d0
commit daa50470f8
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
4 changed files with 20 additions and 4 deletions

View file

@ -1,5 +1,9 @@
#!/bin/sh
lein trampoline run -m clojure.main scripts/dist-main.clj
DIR=`dirname $0`
LEIN="$DIR/lein"
LEIN_FAST_TRAMPOLINE=y $LEIN trampoline run -m clojure.main scripts/dist-main.clj
if [ -x "$(command -v gzip)" ]; then
gzip -9c dist/js/main.js > dist/js/main.js.gz

View file

@ -1,5 +1,9 @@
#!/bin/sh
lein trampoline run -m clojure.main scripts/dist-view.clj
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

View file

@ -1,5 +1,9 @@
#!/bin/sh
lein trampoline run -m clojure.main scripts/dist-worker.clj
DIR=`dirname $0`
LEIN="$DIR/lein"
LEIN_FAST_TRAMPOLINE=y $LEIN trampoline run -m clojure.main scripts/dist-worker.clj
if [ -x "$(command -v gzip)" ]; then
gzip -9c dist/js/worker.js > dist/js/worker.js.gz

View file

@ -1,7 +1,11 @@
#!/usr/bin/env bash
DIR=`dirname $0`
LEIN="$DIR/lein"
RLWRAP=`which rlwrap`
if [ $? != 0 ]; then
RLWRAP="";
fi
$RLWRAP lein trampoline run -m clojure.main scripts/figwheel.clj || exit 1
LEIN_FAST_TRAMPOLINE=y $RLWRAP $LEIN trampoline run -m clojure.main scripts/figwheel.clj || exit 1