             [cljs.repl.rhino :as rhino])
   (:gen-class))
 
-(defonce compile-cljs
-  ^{:doc "Compile Cljs compiler for faster src compilations"}
+(defn compile-cljs
+  "Compile Cljs compiler for faster src compilations"
+  []
   (do
     (compile 'cljs.repl.node)
     (compile 'cljs.repl.browser)
     (compile 'cljs.core)))
 
-(defn watch [main & options]
+(defn watch
   "Watch for Cljs src changes"
+  [main & options]
   (println "Watching for changes ...")
   (b/watch "src"
            {:main main

              :verbose true})
    (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds")))

(defn start-node-repl [& options]
  "Start a Node Repl"
  (println "Starting Node REPL ...")
  (repl/repl* (node/repl-env)
              {:output-dir "target"

               :cache-analysis true
               :source-map true}))

(defn start-rhino-repl
  "Start a Rhino Repl"
  [& options]
  (println "Starting Rhino REPL ...")
  (repl/repl* (rhino/repl-env)
              {:output-dir "target"
               :optimizations :none
               :cache-analysis true
