Closed mopemope closed 8 years ago
@karad Thanks. Fixed.
I try to run your reagent project. but I saw message "Reagent does not work." on Electron window. I think you have to fix template in resources for +reagent mode.
in resources/leiningen/new/descjop/reagent__project.clj
:frontend {:id "{{name}}-reagent"
:source-paths ["src_front"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/js/front.js"
:externs ["app/js/externs.js"]
:warnings true
:elide-asserts true
;; no optimize compile (dev)
:optimizations :none // <- uncomment
;; when no optimize uncomment
:output-dir "app/js/out" // <- uncomment
;; simple compile (dev)
;;:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced // <- comment and change advanced
;;:source-map "app/js/test.js.map"
:pretty-print true
:output-wrapper true
}}}}
reagent project need 2 tasks . try it.
$ lein trampoline cljsbuild auto main
and run another terminal
$ lein trampoline figwheel frontend
figwheel
support only frontend
Oh thanks! I'll try it.
Add Reagent project (with figwheel)