Permalink
Browse files

Add script to start ClojureScript REPL and connect to the browser. Re…

…fs #9.
  • Loading branch information...
brentonashworth committed Dec 22, 2011
1 parent daa524e commit 181d5a86611e73eeab453128b01b7d7a1a449e91
Showing with 13 additions and 0 deletions.
  1. +13 −0 script/cljs-repl
View
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+cd `dirname $0`/..
+
+source script/setup_classpath.sh
+
+java -server -cp $CLJSC_CP jline.ConsoleRunner clojure.main -e \
+"(use '[one.sample.dev-server :only (run-server cljs-repl)])
+ (use '[clojure.java.browse :only (browse-url)])
+ (run-server)
+ (future (Thread/sleep 3000) (browse-url \"http://localhost:8080/development\"))
+ (cljs-repl)" --repl
+

0 comments on commit 181d5a8

Please sign in to comment.