This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-16
Channels
- # admin-announcements (14)
- # announcements (1)
- # aws (1)
- # beginners (105)
- # boot (609)
- # braid-chat (4)
- # braveandtrue (3)
- # cider (24)
- # cljs-dev (13)
- # cljsrn (2)
- # clojure (142)
- # clojure-berlin (7)
- # clojure-ireland (7)
- # clojure-japan (10)
- # clojure-nl (4)
- # clojure-poland (76)
- # clojure-russia (198)
- # clojure-sg (4)
- # clojure-taiwan (1)
- # clojurebridge (1)
- # clojured (4)
- # clojurescript (73)
- # conf-proposals (11)
- # cursive (10)
- # datomic (32)
- # devcards (1)
- # dirac (22)
- # editors (5)
- # emacs (3)
- # events (4)
- # funcool (19)
- # hoplon (18)
- # job (1)
- # jobs (3)
- # jobs-rus (16)
- # keechma (25)
- # ldnclj (33)
- # lein-figwheel (10)
- # leiningen (4)
- # luminus (1)
- # off-topic (19)
- # om (255)
- # onyx (51)
- # overtone (1)
- # parinfer (206)
- # perun (5)
- # proton (2)
- # re-frame (3)
- # reagent (2)
- # remote-jobs (13)
- # ring-swagger (7)
- # slack-help (4)
- # yada (7)
so I have this:
(defmacro require-devtools! []
(when (:devtools env)
;; TODO: Replace this with a ClojureScript require function
'(js/goog.require "frontend.devtools")))
and this:
(ns frontend.devtools
(:require [devtools.core :as devtools]))
; this enables additional features, :custom-formatters is enabled by default
(defn setup! []
(devtools/enable-feature! :sanity-hints :dirac)
(devtools/install!))
(setup!)
and my devtools profile looks like this:
{:repl-options {:port 8230
:nrepl-middleware [dirac.nrepl.middleware/dirac-repl]
:init (do
(require 'dirac.agent)
(dirac.agent/boot!))}
:env {:devtools "true"}
:cljsbuild {:builds {:dev {:source-paths ["devtools"]}}}
:dependencies [[binaryage/devtools "0.5.2"]
[binaryage/dirac "0.1.3"]]}
running lein with-profile +devtools figwheel
doesn't seem to work, while lein with-profile +devtools cljsbuild once
did
ah, I think this is a known issue of figwheel, it does not understand profiles in project.clj
figwheel simply reads project.clj using read-string and does not perform profile merging
"An important note about configuration: The (start-figwheel!) call will automatically pull your configuration from the project.clj BUT ... no leiningen profile merging will occur (this is because we are reading the config raw from the project.clj file)."
@frank: but maybe I’m wrong, I just looked at my other projects and I successfully use figwheel with profiles there
even cljs-devtools-sample uses it: https://github.com/binaryage/cljs-devtools-sample/blob/master/project.clj