Created
January 9, 2014 22:19
-
-
Save sritchie/8343152 to your computer and use it in GitHub Desktop.
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 paddleguru.repl | |
"Helpers for interacting with Austin: https://github.com/cemerick/austin" | |
(:require [paddleguru.util :as u])) | |
(u/try-require 'cemerick.austin) | |
(u/try-require 'cemerick.austin.repls) | |
;; Use these to get the REPL running locally, connected to our live | |
;; server instance. For this to work you'll need to have started the | |
;; app from the repl itself.) | |
(defn start! [] | |
(when-let [browser-repl-env (u/maybe-resolve cemerick.austin.repls browser-repl-env)] | |
(when-let [cljs-repl (u/maybe-resolve cemerick.austin.repls cljs-repl)] | |
(when-let [repl-env (u/maybe-resolve cemerick.austin repl-env)] | |
(cljs-repl (reset! browser-repl-env | |
(repl-env))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment