48 lines
2.2 KiB
Clojure
48 lines
2.2 KiB
Clojure
(defproject chat-demo "0.1.0"
|
|
:description "Example for using BrowserChannel and a client side with ClojureScript"
|
|
|
|
:main chat-demo.server
|
|
|
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
|
[org.clojure/clojurescript "1.8.51"]
|
|
[ring "1.4.0"]
|
|
[org.immutant/web "2.1.4"]
|
|
[ring/ring-defaults "0.2.0" :exclusions [javax.servlet/servlet-api]]
|
|
[compojure "1.4.0"]
|
|
[clj-pebble "0.2.0"]
|
|
[prismatic/dommy "1.1.0"]
|
|
[gered/clj-browserchannel "0.3"]
|
|
[gered/clj-browserchannel-jetty-adapter "0.1.0"]
|
|
[gered/clj-browserchannel-immutant-adapter "0.0.2"]
|
|
[environ "1.0.3"]]
|
|
|
|
:plugins [[lein-cljsbuild "1.1.3"]
|
|
[lein-environ "1.0.3"]]
|
|
|
|
:clean-targets ^{:protect false} [:target-path
|
|
[:cljsbuild :builds :main :compiler :output-dir]
|
|
[:cljsbuild :builds :main :compiler :output-to]]
|
|
:cljsbuild {:builds {:main
|
|
{:source-paths ["src"]
|
|
:compiler {:output-to "resources/public/cljs/app.js"
|
|
:output-dir "resources/public/cljs/target"
|
|
:source-map true
|
|
:optimizations :none
|
|
:pretty-print true}}}}
|
|
|
|
:profiles {:dev {:env {:dev "true"}}
|
|
|
|
:uberjar {:env {}
|
|
:aot :all
|
|
:hooks [leiningen.cljsbuild]
|
|
:cljsbuild {:jar true
|
|
:builds {:main
|
|
{:compiler ^:replace {:output-to "resources/public/cljs/app.js"
|
|
:optimizations :advanced
|
|
:pretty-print false}}}}}}
|
|
|
|
:aliases {"rundemo" ["do" ["clean"] ["cljsbuild" "once"] ["run"]]
|
|
"uberjar" ["do" ["clean"] ["uberjar"]]}
|
|
|
|
)
|