project.clj 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. (defproject com.analogzen.clojure-stack/web-client "0.0.1-SNAPSHOT"
  2. :dependencies [[org.clojure/clojure :clj1.8]
  3. [org.clojure/clojurescript :cljs1.8]
  4. [com.stuartsierra/component :component/clojure1.7+]
  5. [com.taoensso/sente :sente1.7]
  6. ;[reagent "0.5.1"
  7. ; :exclusions [org.clojure/tools.reader]]
  8. ]
  9. :plugins [[lein-modules "0.3.11"]
  10. [lein-environ "1.0.2"]
  11. [lein-cljsbuild "1.1.2"]]
  12. ;
  13. :hooks [leiningen.cljsbuild]
  14. ; :prep-tasks ["compile" ["cljsbuild" "once"]]
  15. :cljsbuild {:builds {:prod {:source-paths ["src"]
  16. :compiler {:main "example.core"
  17. :output-to "resources/public/gen/js/main.js"
  18. :output-dir "resources/public/gen/js"
  19. :asset-path "gen/js"}}}}
  20. ; opinion: two options: 1) start with figwheel for dev. 2) start with main entry point.
  21. :clean-targets ^{:protect false} [:target-path "resources/public/gen"]
  22. ; opinion: dev should be a layer on top of prod. system-map can be updated by dev accordingly, before (start)
  23. :profiles {:dev {:plugins [[lein-figwheel "0.5.0-4"]]
  24. :dependencies [;;;[com.analogzen.clojure-stack/web-backend _]
  25. ]
  26. :cljsbuild {:builds {:dev {:source-paths ["src" "dev-src"]
  27. ; if only we could copy these from core...
  28. :compiler {:main "example.dev"
  29. :output-to "resources/public/gen/js/main.js"
  30. :output-dir "resources/public/gen/js"
  31. :asset-path "gen/js"}
  32. ; it's nice to show all the options. editor option could be a projection of defaults,
  33. ; from getting effective project model.
  34. :figwheel {:server-ip "127.0.0.1"
  35. :server-port 3449
  36. :server-logfile "figwheel_server.log"
  37. :http-server-root "public"
  38. :heads-up-display true
  39. :repl true
  40. :nrepl-port 7888
  41. :css-dirs ["resources/public/css"]
  42. :on-jsload example.dev/reload!
  43. ;;; :ring-init example.dev/init! -- no such option
  44. ;;;:ring-handler example.core/app
  45. }}}}}}
  46. :min-lein-version "2.5.0")