ambly start script

This commit is contained in:
Dan Motzenbecker 2015-08-22 01:05:34 -04:00
parent f8190999f5
commit 8ea21c84e4
1 changed files with 19 additions and 0 deletions

19
resources/ambly.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
if hash rlwrap 2>/dev/null; then
COMMAND="rlwrap lein"
else
COMMAND="lein"
fi
$COMMAND trampoline run -m clojure.main -e \
"(require '[cljs.repl :as repl])
(require '[ambly.core :as ambly])
(let [repl-env (ambly.core/repl-env)]
(cljs.repl/repl repl-env
:watch \"src\"
:watch-fn
(fn []
(cljs.repl/load-file repl-env
\"src/$PROJECT_NAME_UNDERSCORED$/core.cljs\"))
:analyze-path \"src\"))"