Skip to content

Instantly share code, notes, and snippets.

@tclev
Created July 9, 2015 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tclev/04bca1350b4157a0abc4 to your computer and use it in GitHub Desktop.
Save tclev/04bca1350b4157a0abc4 to your computer and use it in GitHub Desktop.
Figwheel Cider Setup. Emacs Cider version: cider-20150705.1139
(ns pa.dev
(:require
[pa.core :as core]
[figwheel.client :as fw]
[cljs.pprint :as pp]))
(fw/start {
:websocket-url "ws://localhost:3449/figwheel-ws"
:heads-up-display true
:on-jsload (fn []
(print "reloaded")
(core/main))})
{:user {
:plugins [[lein-pprint "1.1.1"]
[lein-ancient "0.6.2"]
[cider/cider-nrepl "0.10.0-20150707.120216-7"]]
:dependencies [[org.clojure/tools.nrepl "0.2.10"]]
:figwheel {
:nrepl-port 7888
}}}
(defproject foo-web "0.0.0.0"
:jvm-opts ^:replace ["-Xms1g" "-Xmx1g" "-server" "-Dline.separator=\"\n\""]
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "0.0-3308"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[org.omcljs/om "0.9.0"]
[com.cognitect/transit-cljs "0.8.220"]
[prismatic/om-tools "0.3.11" :exclusions [om schema]]
[prismatic/schema "0.4.3"]
[prismatic/plumbing "0.4.4"]
[cljs-ajax "0.3.13"]
[secretary "1.2.3"]
[figwheel "0.3.7"]]
:source-paths ["src"]
:clean-targets ^{:protect false} ["../Console/bin/Debug/resources/js" "target" "obj" "bin"]
:plugins [[lein-cljsbuild "1.0.5"]
[lein-figwheel "0.3.7"]]
:figwheel {
:server-port 3449
:css-dirs ["../Console/bin/Debug/resources/css"]}
:cljsbuild {
:builds {
:debug
{:source-paths ["src/cljs" "dev/cljs"]
:compiler {:main pa.dev
:asset-path "js"
:output-to "../Console/bin/Debug/resources/js/main.js"
:output-dir "../Console/bin/Debug/resources/js"
:optimizations :none
:pretty-print true
:cache-analysis true
:recompile-dependents true
:source-map true}}
:test
{:source-paths ["src/cljs" "test/cljs"]
:notify-command ["node_modules/phantomjs/lib/phantom/phantomjs.exe"
"phantom/unit-test.js"
"phantom/unit-test.html"]
:compiler {:main test.runner
:asset-path "../obj/Test/js"
:output-to "obj/Test/js/main.js"
:output-dir "obj/Test/js"
:optimizations :none
:pretty-print true
:source-map "obj/Test/js/main.js.map"}}}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment