Browse files

Add convenience (cljs-repl) function to one.sample.repl.

  • Loading branch information...
Brenton Ashworth and Craig Andera
Brenton Ashworth and Craig Andera committed Jan 24, 2012
1 parent 66a8a4f commit 9597981db658d9295eb7b3e4799852c92a82ff13
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/clj/one/sample/repl.clj
@@ -23,6 +23,13 @@
(future (Thread/sleep 3000)
(browse/browse-url "http://localhost:8080")))
+;; This is a convenience function so that people can start a CLJS REPL
+;; without having to type in (tools/cljs-repl)
+(defn cljs-repl
+ "Start a ClojureScript REPL."
+ []
+ (tools/cljs-repl))
(println "Type (go) to launch the development server and setup a browser-connected REPL.")
(println "Type (dev-server) to launch only the development server.")

0 comments on commit 9597981

Please sign in to comment.