reagent/project.clj

98 lines
4.2 KiB
Clojure
Raw Normal View History

2017-03-10 00:22:56 +00:00
(defproject reagent "0.6.1"
: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.8.0"]
[org.clojure/clojurescript "1.8.51"]
2017-03-19 14:49:30 +00:00
[cljsjs/react-dom "15.4.2-2"]
[cljsjs/react-dom-server "15.4.2-2"]]
2017-03-10 22:00:56 +00:00
:plugins [[lein-cljsbuild "1.1.5"]
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"]
:notify-command ["node" "bin/gen-site.js"]
2015-10-14 14:09:02 +00:00
:compiler
{:main "reagenttest.runtests"}}}}}
2017-03-10 22:00:56 +00:00
:fig [{:dependencies [[figwheel "0.5.9"]]
:plugins [[lein-figwheel "0.5.9"]]
:source-paths ["demo"] ;; for lighttable
:resource-paths ["site" "outsite"]
:figwheel {:css-dirs ["site/public/css"]}
:cljsbuild
{:builds
{:client
{:figwheel true
2015-10-14 14:09:02 +00:00
:compiler {:source-map true
:optimizations :none
2016-04-30 10:43:18 +00:00
;; :recompile-dependents false
:output-dir "outsite/public/js/out"
:asset-path "js/out"}}}}}]
2016-04-30 20:45:04 +00:00
:site {:resource-paths ^:replace ["outsite"]
:figwheel {:css-dirs ^:replace ["outsite/public/css"]}}
2016-04-30 20:45:04 +00:00
:prod [:site
{:cljsbuild
{:builds {:client
{:compiler {:optimizations :advanced
:elide-asserts true
:pretty-print false
2015-09-11 10:35:06 +00:00
;; :pseudo-names true
:output-dir "target/client"}}}}}]
:prerender [:prod
{:cljsbuild
{:builds {:client
{:compiler {:main "reagentdemo.server"
:output-to "pre-render/main.js"
:output-dir "pre-render/out"}
:notify-command ["node" "bin/gen-site.js"] }}}}]
: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"]
:requires []}]}}}}}
2015-10-14 14:09:02 +00:00
:prod-test [:prod :test]
2016-04-30 20:45:04 +00:00
:dev [:fig :test]
:dev-notest [:fig]}
: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"
"pre-render"]
:cljsbuild {:builds {:client
{:source-paths ["src"
"demo"
"examples/todomvc/src"
"examples/simple/src"
"examples/geometry/src"]
2016-04-30 10:43:18 +00:00
:compiler {:parallel-build true
:main "reagentdemo.core"
2016-04-30 10:43:18 +00:00
:output-to "outsite/public/js/main.js"}}}}
2016-04-30 20:45:04 +00:00
:figwheel {:http-server-root "public" ;; assumes "resources"
:repl false})