Last active
December 13, 2017 17:37
-
-
Save yannvanhalewyn/054e9a4fd8395c534346a816a60f8878 to your computer and use it in GitHub Desktop.
Boot node cljs repl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{: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}}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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
Don't forget
yarn add ws
for figwheel.