Last active
June 11, 2017 16:29
-
-
Save swannodette/1c9ba5c78e7d3a95174dd8a592928cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(require 'tubular.core) | |
(tubular.core/connect "127.0.0.1" REPL_PORT) |
This file contains hidden or 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
(require '[figwheel-sidecar.repl :as r] | |
'[figwheel-sidecar.repl-api :as ra] | |
'[clojure.core.server :as server]) | |
(ra/start-figwheel! | |
{:figwheel-options | |
{:server-ip SERVER_IP :server-port SERVER_PORT} | |
:build-ids ["foo"] | |
:all-builds | |
[{:id "foo" | |
:figwheel {:websocket-url (str "ws://" CLIENT_IP ":" CLIENT_PORT "/figwheel-ws")} | |
:source-paths ["src/"] | |
:compiler { | |
:main 'foo.core | |
:asset-path "js/out" | |
:output-to "resources/public/js/out/main.js" | |
:output-dir "resources/public/js/out"}}]}) | |
(server/start-server | |
{:address SERVER_IP | |
:port REPL_PORT | |
:name :cljs-socket-repl | |
:accept `ra/cljs-repl}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment