-
-
Save borkdude/23b9bb14169ad3f1993f8b7e736c9bb7 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