Forked from swannodette/figwheel_client_socket_repl.clj
Created
June 22, 2016 21:05
-
-
Save bhauman/c3dd1a8961076f981f817ce639546f67 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