Last active
March 4, 2016 16:58
-
-
Save jasonzoladz/7c7ab0d8830c11baac88 to your computer and use it in GitHub Desktop.
Setup ClojureScript Figwheel for Use With Haskell Server
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
(defproject udemy "0.1.0" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.7.228"] | |
[reagent "0.5.1" | |
:exclusions [org.clojure/tools.reader, cljsjs/react]] | |
[cljsjs/react-with-addons "0.13.3-0"] | |
[reagent-forms "0.5.16"] | |
[reagent-utils "0.1.7"] | |
[re-frame "0.5.0"] | |
[org.clojure/core.async "0.2.374"] | |
[funcool/cats "1.2.1"] | |
[secretary "1.2.3"] | |
[venantius/accountant "0.1.6" | |
:exclusions [org.clojure/tools.reader]] | |
[cljs-ajax "0.5.3"] | |
[cljsjs/google-maps "3.18-1"]] | |
:plugins [[lein-cljsbuild "1.1.2"] | |
[lein-figwheel "0.5.0-5"]] | |
:clean-targets ^{:protect false} [:target-path | |
[:cljsbuild :builds :app :compiler :output-dir] | |
[:cljsbuild :builds :app :compiler :output-to]] | |
;; pay attention to output-to, output-dir and asset-path | |
:cljsbuild {:builds {:app {:source-paths ["src"] | |
:compiler {:main udemy.core | |
:output-to "../server/static/js/app.js" | |
:output-dir "../server/static/js" | |
;;:asset-path "./static/js" | |
;;NOTE: When using wai-middleware-static, the :asset-path is simply "js"; that is, | |
;; the path inside of static | |
:asset-path "js" | |
:optimizations :none | |
:pretty-print true} | |
:figwheel {:on-jsload "udemy.core/init!"}}}} | |
:figwheel {:css-dirs ["../server/static/css"] | |
;; :websocket-url "ws://localhost:3449/figwheel-ws" | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment