reagent/project.clj

91 lines
3.9 KiB
Clojure
Raw Normal View History

(defproject reagent "0.6.0-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"]
2015-10-14 14:09:02 +00:00
[org.clojure/clojurescript "1.7.145"]
2016-04-16 07:01:33 +00:00
[cljsjs/react-dom "15.0.1-0"]
[cljsjs/react-dom-server "15.0.1-0"]]
2015-10-08 12:14:34 +00:00
:plugins [[lein-cljsbuild "1.1.0"]
2015-11-17 01:29:14 +00:00
[codox "0.9.0"]]
:source-paths ["src"]
2015-05-11 16:36:11 +00:00
:codox {:language :clojurescript
2015-09-08 19:49:05 +00:00
:exclude clojure.string}
2015-05-11 16:36:11 +00:00
:profiles {:test {:cljsbuild
2015-10-14 14:09:02 +00:00
{:builds {:client {:source-paths ["test"]
:compiler
{:main "reagenttest.runtests"}}}}}
:dev [:test
2015-10-08 12:14:34 +00:00
{:dependencies [[figwheel "0.4.0"]]
:plugins [[lein-figwheel "0.4.0"]]
: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-10-14 14:09:02 +00:00
:compiler {: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
2015-10-14 14:09:02 +00:00
:main "reagentdemo.core"
2015-09-11 10:35:06 +00:00
;; :pseudo-names true
:output-dir "target/client"}}}}}]
:webpack {:cljsbuild
{:builds {:client
{:compiler
{:foreign-libs
[{:file "target/webpack/bundle.js"
:file-min "target/webpack/bundle.min.js"
:provides ["cljsjs.react.dom"
"cljsjs.react.dom.server"
"cljsjs.react"]}]}}}}}
2015-10-14 14:09:02 +00:00
:prod-test [:prod :test]
: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})