Created
November 21, 2015 01:20
-
-
Save geraldodev/cb50877a6f04fa809e1d to your computer and use it in GitHub Desktop.
user.clj that uses leiningen.core.project to read the contents of the project to pass to figwheel
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 | |
[clojure.pprint :refer [pprint]] | |
[clojure.stacktrace :refer :all] | |
[clojure.tools.namespace.repl :refer (refresh refresh-all disable-reload!)] | |
[figwheel-sidecar.config :as figcfg] | |
[figwheel-sidecar.repl-api :refer :all] | |
[leiningen.core.project :as proj] | |
[cemerick.piggieback :as piggieback] | |
)) | |
(disable-reload!) | |
(defn dev | |
[] | |
(require 'dev) | |
(in-ns 'dev) | |
(eval '(go))) | |
(defn go | |
[] | |
(println "Não seria (dev) ?")) | |
(let [cfg (figcfg/config (proj/read))] | |
(println "Configuração do fighweel:") | |
(println (pprint cfg)) | |
(start-figwheel! cfg)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment