Skip to content

Commit

Permalink
Add convenience (cljs-repl) function to one.sample.repl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenton Ashworth and Craig Andera committed Jan 24, 2012
1 parent 66a8a4f commit 9597981
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/clj/one/sample/repl.clj
Expand Up @@ -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)
(println "Type (go) to launch the development server and setup a browser-connected REPL.")
(println "Type (dev-server) to launch only the development server.")
Expand Down

0 comments on commit 9597981

Please sign in to comment.