Skip to content

Instantly share code, notes, and snippets.

@yannvanhalewyn
Last active December 13, 2017 17:37
Show Gist options
  • Select an option

  • Save yannvanhalewyn/054e9a4fd8395c534346a816a60f8878 to your computer and use it in GitHub Desktop.

Select an option

Save yannvanhalewyn/054e9a4fd8395c534346a816a60f8878 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")
@yannvanhalewyn
Copy link
Copy Markdown
Author

Don't forget yarn add ws for figwheel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment