reagent/project.clj

77 lines
3.2 KiB
Clojure
Raw Normal View History

2015-03-11 18:15:29 +00:00
(defproject reagent "0.5.1-SNAPSHOT"
:url "http://github.com/reagent-project/reagent"
2013-12-19 12:11:02 +00:00
:license {:name "MIT"}
:description "A simple ClojureScript interface to React"
:dependencies [[org.clojure/clojure "1.7.0-RC1"]
2015-06-02 09:02:46 +00:00
[org.clojure/clojurescript "0.0-3308"]
[cljsjs/react "0.13.3-0"]]
:plugins [[lein-cljsbuild "1.0.6"]
2015-05-11 16:36:11 +00:00
[codox "0.8.12"]]
:source-paths ["src"]
2015-05-11 16:36:11 +00:00
:codox {:language :clojurescript
:exclude clojure.string}
:profiles {:test {:cljsbuild
{:builds {:client {:source-paths ["test"]}}}}
:dev [:test
{:dependencies [[figwheel "0.3.3"]]
:plugins [[lein-figwheel "0.3.3"]]
:source-paths ["demo"] ;; for lighttable
:resource-paths ["site" "outsite"]
:figwheel {:css-dirs ["site/public/css"]}
:cljsbuild
{:builds
{:client
2015-06-02 09:02:46 +00:00
{:figwheel {:on-jsload "reagenttest.runtests/reload"}
2015-05-31 09:51:11 +00:00
:compiler {:main "reagenttest.runtests"
:source-map true
:source-map-timestamp true
:optimizations :none
:output-dir "outsite/public/js/out"
:asset-path "js/out"}}}}}]
:site {:resource-paths ^:replace ["outsite"]
:figwheel {:css-dirs ^:replace ["outsite/public/css"]}
:cljsbuild
{:builds {:client
{:notify-command ["node" "bin/gen-site.js"]}}}}
:prod [:site
{:cljsbuild
{:builds {:client
{:compiler {:optimizations :advanced
:elide-asserts true
:pretty-print false
:output-dir "target/client"}}}}}]
:prod-test [:test :prod]
:dev-notest [:dev
{:cljsbuild
{:builds {:client
{:compiler {:load-tests false}}}}}]}
:clean-targets ^{:protect false} [:target-path :compile-path
"outsite/public/js"
"outsite/public/site"
"outsite/public/news"
"outsite/public/css"
"outsite/public/index.html"
"out"]
:cljsbuild {:builds {:client
{:source-paths ["src"
"demo"
"examples/todomvc/src"
"examples/simple/src"
"examples/geometry/src"]
:compiler {:output-to "outsite/public/js/main.js"}}}}
:figwheel {:http-server-root "public" ;; assumes "resources"
:repl false})