Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…fs #9.
  • Loading branch information...
commit 181d5a86611e73eeab453128b01b7d7a1a449e91 1 parent daa524e
@brentonashworth brentonashworth authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 script/cljs-repl
View
13 script/cljs-repl
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.