Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 16 lines (12 sloc) 0.392 kB
f15d541 Add repljs script to launch ClojureScript REPL directly
Chris Redinger & Stuart Sierra authored
1 #!/bin/sh
7128a5d @brentonashworth Remove JVM memory options from scripts. REPL scripts can run from any…
brentonashworth authored
2
3 if [ "$CLOJURESCRIPT_HOME" = "" ]; then
4 CLOJURESCRIPT_HOME="`dirname $0`/.."
5 fi
6
7 CLJSC_CP=''
8 for next in lib/*: src/clj: src/cljs: test/cljs; do
5c8e1d4 @charles-dyfis-net General cleanups for shell wrappers
charles-dyfis-net authored
9 CLJSC_CP="${CLJSC_CP}${CLOJURESCRIPT_HOME}/${next}"
7128a5d @brentonashworth Remove JVM memory options from scripts. REPL scripts can run from any…
brentonashworth authored
10 done
11
5c8e1d4 @charles-dyfis-net General cleanups for shell wrappers
charles-dyfis-net authored
12 java -server -cp "$CLJSC_CP" clojure.main -e \
8c18eaa @brentonashworth Update repljs script to use the new REPL.
brentonashworth authored
13 "(require '[cljs.repl :as repl])
14 (require '[cljs.repl.rhino :as rhino])
335a1f6 @swannodette * script/repljs: make the Rhino REPL warn on undeclared. REPLs should…
swannodette authored
15 (repl/repl (rhino/repl-env) :warn-on-undeclared true)"
Something went wrong with that request. Please try again.