2016-01-06 23:31:18 +00:00
|
|
|
(defproject picture-processor "0.1.0-SNAPSHOT"
|
|
|
|
:description "FIXME: write description"
|
|
|
|
:url "http://example.com/FIXME"
|
|
|
|
:license {:name "Eclipse Public License"
|
|
|
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
|
|
|
:plugins [[lein-cljsbuild "1.1.2"]
|
|
|
|
[lein-npm "0.6.1"]]
|
2016-01-12 11:59:07 +00:00
|
|
|
:source-paths ["src/server" "src/client"]
|
|
|
|
:npm { :dependencies [[ws "0.4.30"]
|
2016-01-13 11:51:46 +00:00
|
|
|
[imagemagick-native "https://github.com/elad/node-imagemagick-native.git"]
|
|
|
|
[express "4.13.3"]]}
|
2016-01-06 23:31:18 +00:00
|
|
|
:cljsbuild {
|
2016-01-12 11:59:07 +00:00
|
|
|
:builds [{:source-paths ["src/server"]
|
2016-01-06 23:31:18 +00:00
|
|
|
:compiler {
|
|
|
|
:target :nodejs
|
2016-01-12 11:59:07 +00:00
|
|
|
:optimizations :simple}}
|
|
|
|
{:source-paths ["src/client"]
|
|
|
|
:compiler {
|
|
|
|
:output-dir "public/out"
|
|
|
|
:output-to "public/index.js"
|
|
|
|
:pretty-print true
|
|
|
|
:optimizations :whitespace}}
|
|
|
|
]}
|
2016-01-07 00:01:23 +00:00
|
|
|
:profiles {:dev {:source-paths ["dev-src"]
|
|
|
|
:dependencies [[com.cemerick/piggieback "0.2.1"]
|
2016-01-12 11:59:07 +00:00
|
|
|
[org.clojure/tools.nrepl "0.2.10"]
|
|
|
|
[ring/ring-core "1.4.0"]
|
|
|
|
[ring/ring-jetty-adapter "1.4.0"]]
|
2016-01-06 23:31:18 +00:00
|
|
|
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
|
|
|
|
:init (do
|
2016-01-12 11:59:07 +00:00
|
|
|
(require 'cljs.repl.node
|
|
|
|
'weasel.repl.websocket)
|
|
|
|
(use 'ring.middleware.file
|
|
|
|
'ring.adapter.jetty)
|
|
|
|
(defn web-start []
|
|
|
|
(run-jetty (wrap-file (fn [request]
|
|
|
|
{:status 200
|
|
|
|
:body "ok"}
|
|
|
|
) "public")
|
|
|
|
{:port 3500}
|
|
|
|
))
|
2016-01-06 23:31:18 +00:00
|
|
|
(defn start [] (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))))
|
|
|
|
}}}
|
|
|
|
:dependencies [[org.clojure/clojure "1.7.0"]
|
|
|
|
[weasel "0.7.0" :exclusions [org.clojure/clojurescript]]
|
2016-01-12 11:59:07 +00:00
|
|
|
[org.clojure/clojurescript "1.7.170"]
|
|
|
|
[org.omcljs/om "0.9.0"]
|
|
|
|
[sablono "0.3.6"]
|
2016-01-13 11:51:46 +00:00
|
|
|
[cljs-http "0.1.39"]
|
2016-01-12 11:59:07 +00:00
|
|
|
])
|