2017-07-31 10:36:34 +00:00
|
|
|
(defproject reagent "0.8.0-alpha1"
|
2014-11-06 19:21:38 +00:00
|
|
|
: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"
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2016-04-29 19:29:18 +00:00
|
|
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
2017-07-29 13:26:15 +00:00
|
|
|
[org.clojure/clojurescript "1.9.854"]
|
2017-07-12 21:45:38 +00:00
|
|
|
;; If :npm-deps enabled, these are used only for externs
|
2017-07-29 20:16:04 +00:00
|
|
|
[cljsjs/react-dom "15.6.1-1"]
|
|
|
|
[cljsjs/react-dom-server "15.6.1-1"]
|
2017-08-01 14:42:39 +00:00
|
|
|
[cljsjs/create-react-class "15.6.0-2"]]
|
2015-02-07 08:30:20 +00:00
|
|
|
|
2017-05-19 17:26:53 +00:00
|
|
|
:plugins [[lein-cljsbuild "1.1.6"]
|
2017-03-19 20:13:25 +00:00
|
|
|
[lein-codox "0.10.3"]]
|
2015-02-07 08:30:20 +00:00
|
|
|
|
2014-11-29 17:30:24 +00:00
|
|
|
:source-paths ["src"]
|
2015-05-11 16:36:11 +00:00
|
|
|
|
|
|
|
:codox {:language :clojurescript
|
2017-03-19 20:13:25 +00:00
|
|
|
:exclude clojure.string
|
|
|
|
:source-paths ["src"]}
|
2015-05-11 16:36:11 +00:00
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
:profiles {:test {:cljsbuild
|
2015-10-14 14:09:02 +00:00
|
|
|
{:builds {:client {:source-paths ["test"]
|
2017-03-10 23:19:40 +00:00
|
|
|
:notify-command ["node" "bin/gen-site.js"]
|
2015-10-14 14:09:02 +00:00
|
|
|
:compiler
|
|
|
|
{:main "reagenttest.runtests"}}}}}
|
2014-11-29 22:26:42 +00:00
|
|
|
|
2017-07-09 20:11:49 +00:00
|
|
|
:fig [{:dependencies [[figwheel "0.5.11"]]
|
|
|
|
:plugins [[lein-figwheel "0.5.11"]]
|
2015-02-11 18:06:38 +00:00
|
|
|
:source-paths ["demo"] ;; for lighttable
|
|
|
|
:resource-paths ["site" "outsite"]
|
|
|
|
:figwheel {:css-dirs ["site/public/css"]}
|
|
|
|
:cljsbuild
|
|
|
|
{:builds
|
|
|
|
{:client
|
2016-05-27 10:55:13 +00:00
|
|
|
{:figwheel true
|
2015-10-14 14:09:02 +00:00
|
|
|
:compiler {:source-map true
|
2015-02-11 18:06:38 +00:00
|
|
|
:optimizations :none
|
2016-04-30 10:43:18 +00:00
|
|
|
;; :recompile-dependents false
|
2015-02-11 18:06:38 +00:00
|
|
|
:output-dir "outsite/public/js/out"
|
2017-06-06 16:10:41 +00:00
|
|
|
:asset-path "js/out"}}}}}]
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
:site {:resource-paths ^:replace ["outsite"]
|
2017-03-10 22:36:23 +00:00
|
|
|
:figwheel {:css-dirs ^:replace ["outsite/public/css"]}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
:prod [:site
|
|
|
|
{:cljsbuild
|
|
|
|
{:builds {:client
|
2015-02-10 17:20:48 +00:00
|
|
|
{:compiler {:optimizations :advanced
|
2015-02-07 08:30:20 +00:00
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
2015-09-11 10:35:06 +00:00
|
|
|
;; :pseudo-names true
|
2017-07-30 12:57:17 +00:00
|
|
|
:output-dir "target/client"}}}}}]
|
2015-02-11 18:06:38 +00:00
|
|
|
|
2017-03-10 22:36:23 +00:00
|
|
|
: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"] }}}}]
|
|
|
|
|
2015-10-10 10:37:58 +00:00
|
|
|
:webpack {:cljsbuild
|
|
|
|
{:builds {:client
|
|
|
|
{:compiler
|
|
|
|
{:foreign-libs
|
|
|
|
[{:file "target/webpack/bundle.js"
|
|
|
|
:file-min "target/webpack/bundle.min.js"
|
|
|
|
:provides ["cljsjs.react.dom"
|
2015-11-20 17:57:00 +00:00
|
|
|
"cljsjs.react.dom.server"
|
2016-04-29 19:29:18 +00:00
|
|
|
"cljsjs.react"]
|
|
|
|
:requires []}]}}}}}
|
2015-10-10 10:37:58 +00:00
|
|
|
|
2015-10-14 14:09:02 +00:00
|
|
|
:prod-test [:prod :test]
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2016-05-27 10:55:13 +00:00
|
|
|
:dev [:fig :test]
|
|
|
|
|
|
|
|
:dev-notest [:fig]}
|
2014-11-29 17:30:24 +00:00
|
|
|
|
|
|
|
:clean-targets ^{:protect false} [:target-path :compile-path
|
|
|
|
"outsite/public/js"
|
|
|
|
"outsite/public/site"
|
|
|
|
"outsite/public/news"
|
2015-02-10 13:18:56 +00:00
|
|
|
"outsite/public/css"
|
2014-11-29 17:30:24 +00:00
|
|
|
"outsite/public/index.html"
|
2017-03-10 22:36:23 +00:00
|
|
|
"out"
|
|
|
|
"pre-render"]
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
: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
|
2016-05-27 10:55:13 +00:00
|
|
|
:main "reagentdemo.core"
|
2017-06-06 16:10:41 +00:00
|
|
|
:output-to "outsite/public/js/main.js"
|
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript3
|
2017-07-30 12:57:17 +00:00
|
|
|
;; Add process.env.NODE_ENV preload
|
|
|
|
:shim-process true
|
2017-07-09 20:11:49 +00:00
|
|
|
:npm-deps {:react "15.6.1"
|
|
|
|
:react-dom "15.6.1"
|
2017-07-30 12:57:17 +00:00
|
|
|
:create-react-class "15.6.0"}}}}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2014-11-29 17:30:24 +00:00
|
|
|
:figwheel {:http-server-root "public" ;; assumes "resources"
|
2015-02-07 08:30:20 +00:00
|
|
|
:repl false})
|