 
 (defn show-classpath []
   (dp/classpath-urls (clojure.lang.DynamicClassLoader.)))
+
+(defn -main
+  "If invoked on the CLI, compile cljs and start a build and Clojure repl"
+  [args]
+  (compile-cljs-src)
+  (build args))

  (let [start (System/nanoTime)]
    (b/build "src"
             {:output-to "dist/app.min.js"
              :output-dir "target"
              :optimizations :advanced
              :verbose true})
    (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds")))

     (println "setting main as: " main)
     (b/build "src"
              {:main main
               :output-to "main.js"
               :target :nodejs})
     (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))))

(defn release
  "Release Cljs src for production (advanced compilation)"
