Skip to content

Instantly share code, notes, and snippets.

@borkdude
Forked from yannvanhalewyn/build.boot
Created November 25, 2017 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borkdude/23b9bb14169ad3f1993f8b7e736c9bb7 to your computer and use it in GitHub Desktop.
Save borkdude/23b9bb14169ad3f1993f8b7e736c9bb7 to your computer and use it in GitHub Desktop.
Boot node cljs repl
(set-env!
:target-path "target"
:source-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.9.0-RC1"]
[org.clojure/clojurescript "1.9.946"]
[figwheel-sidecar "0.5.14"]])
(require '[figwheel-sidecar.repl-api :as ra])
(deftask cljs-repl []
(ra/start-figwheel!)
(ra/cljs-repl))
{:builds [{:id "dev"
:source-paths ["src"]
:figwheel true
:compiler {:main my-ns.core
:output-to "target/app.js"
:output-dir "target/compiled"
:optimizations :none
:target :nodejs}}]}
(ns my-ns.core)
(.log js/console "Hello from node")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment