2020-03-06 12:12:54 +00:00
|
|
|
(defproject reagent "0.10.0"
|
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
|
|
|
|
2020-02-03 10:11:04 +00:00
|
|
|
:dependencies [[org.clojure/clojure "1.10.1"]
|
2017-08-01 14:45:34 +00:00
|
|
|
;; If :npm-deps enabled, these are used only for externs.
|
|
|
|
;; Without direct react dependency, other packages,
|
|
|
|
;; like react-leaflet might have closer dependency to a other version.
|
2020-02-28 12:38:34 +00:00
|
|
|
[cljsjs/react "16.13.0-0"]
|
|
|
|
[cljsjs/react-dom "16.13.0-0"]
|
|
|
|
[cljsjs/react-dom-server "16.13.0-0"]]
|
2015-02-07 08:30:20 +00:00
|
|
|
|
2017-09-28 19:15:19 +00:00
|
|
|
:plugins [[lein-cljsbuild "1.1.7"]
|
2018-12-31 11:45:03 +00:00
|
|
|
[lein-doo "0.1.11"]
|
2020-02-05 21:27:52 +00:00
|
|
|
[lein-codox "0.10.7"]
|
2020-02-03 10:11:04 +00:00
|
|
|
[lein-figwheel "0.5.19"]]
|
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
|
2020-02-06 14:57:26 +00:00
|
|
|
:source-paths ["src"]
|
|
|
|
:doc-paths []}
|
2015-05-11 16:36:11 +00:00
|
|
|
|
2019-12-17 00:39:44 +00:00
|
|
|
:profiles {:dev {:dependencies [[org.clojure/clojurescript "1.10.597"]
|
2020-02-03 10:11:04 +00:00
|
|
|
[figwheel "0.5.19"]
|
2020-02-14 14:44:28 +00:00
|
|
|
[figwheel-sidecar "0.5.19"]
|
2018-12-31 11:45:03 +00:00
|
|
|
[doo "0.1.11"]
|
2020-02-03 10:11:04 +00:00
|
|
|
[cljsjs/prop-types "15.7.2-0"]]
|
2018-04-17 17:24:41 +00:00
|
|
|
:source-paths ["demo" "test" "examples/todomvc/src" "examples/simple/src" "examples/geometry/src"]
|
2018-04-03 08:56:49 +00:00
|
|
|
:resource-paths ["site" "target/cljsbuild/client" "target/cljsbuild/client-npm"]}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:clean-targets ^{:protect false} [:target-path :compile-path "out"]
|
2015-02-11 18:06:38 +00:00
|
|
|
|
2020-02-14 14:44:28 +00:00
|
|
|
:repl-options {:init (do (require '[figwheel-sidecar.repl-api :refer :all]))}
|
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:figwheel {:http-server-root "public" ;; assumes "resources"
|
|
|
|
:css-dirs ["site/public/css"]
|
2020-02-28 15:24:16 +00:00
|
|
|
:repl true
|
|
|
|
:nrepl-port 27397}
|
2018-04-17 17:24:41 +00:00
|
|
|
|
|
|
|
;; No profiles and merging - just manual configuration for each build type.
|
|
|
|
;; For :optimization :none ClojureScript compiler will compile all
|
|
|
|
;; cljs files in source-paths. To ensure unncessary files
|
|
|
|
;; aren't compiled it would be better to not provide source-paths or
|
|
|
|
;; provide single file but currently this doesn't work for Cljsbuild.
|
|
|
|
;; In future :main alone should be enough to find entry file.
|
2017-10-18 11:25:41 +00:00
|
|
|
:cljsbuild
|
|
|
|
{:builds
|
2018-04-27 19:21:22 +00:00
|
|
|
[{:id "client"
|
|
|
|
:source-paths ["demo"]
|
2018-04-17 17:24:41 +00:00
|
|
|
:watch-paths ["src" "demo" "test"]
|
2017-10-18 11:25:41 +00:00
|
|
|
:figwheel true
|
|
|
|
:compiler {:parallel-build true
|
|
|
|
:optimizations :none
|
|
|
|
:main "reagentdemo.dev"
|
|
|
|
:output-dir "target/cljsbuild/client/public/js/out"
|
|
|
|
:output-to "target/cljsbuild/client/public/js/main.js"
|
2017-11-18 18:04:52 +00:00
|
|
|
:npm-deps false
|
2018-12-31 11:07:05 +00:00
|
|
|
:asset-path "js/out"
|
2019-01-10 19:03:09 +00:00
|
|
|
:checked-arrays :warn
|
|
|
|
:infer-externs true}}
|
2018-04-03 07:33:01 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "client-npm"
|
|
|
|
:source-paths ["demo"]
|
2018-04-17 17:24:41 +00:00
|
|
|
:watch-paths ["src" "demo" "test"]
|
2018-04-03 07:33:01 +00:00
|
|
|
:figwheel true
|
|
|
|
:compiler {:parallel-build true
|
|
|
|
:optimizations :none
|
|
|
|
:main "reagentdemo.dev"
|
2018-04-03 08:56:49 +00:00
|
|
|
:output-dir "target/cljsbuild/client-npm/public/js/out"
|
|
|
|
:output-to "target/cljsbuild/client-npm/public/js/main.js"
|
2018-11-14 20:40:15 +00:00
|
|
|
:npm-deps true
|
2017-11-18 18:04:52 +00:00
|
|
|
:asset-path "js/out"
|
|
|
|
:checked-arrays :warn}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "test"
|
|
|
|
:source-paths ["test"]
|
2017-10-18 11:25:41 +00:00
|
|
|
:compiler {:parallel-build true
|
|
|
|
:optimizations :none
|
|
|
|
:main "reagenttest.runtests"
|
|
|
|
:asset-path "js/out"
|
|
|
|
:output-dir "target/cljsbuild/test/out"
|
|
|
|
:output-to "target/cljsbuild/test/main.js"
|
2018-04-03 07:33:01 +00:00
|
|
|
:npm-deps false
|
2018-04-19 16:35:06 +00:00
|
|
|
:aot-cache true
|
2019-01-10 19:03:09 +00:00
|
|
|
:checked-arrays :warn
|
|
|
|
:infer-externs true}}
|
2018-04-03 07:33:01 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "test-npm"
|
|
|
|
:source-paths ["test"]
|
2018-04-03 07:33:01 +00:00
|
|
|
:compiler {:parallel-build true
|
|
|
|
:optimizations :none
|
|
|
|
:main "reagenttest.runtests"
|
|
|
|
:asset-path "js/out"
|
|
|
|
:output-dir "target/cljsbuild/test-npm/out"
|
|
|
|
:output-to "target/cljsbuild/test-npm/main.js"
|
2018-11-14 20:40:15 +00:00
|
|
|
:npm-deps true
|
2018-04-19 16:35:06 +00:00
|
|
|
:aot-cache true
|
|
|
|
:checked-arrays :warn}}
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2018-04-17 17:24:41 +00:00
|
|
|
;; Separate source-path as this namespace uses Node built-in modules which
|
|
|
|
;; aren't available for other targets, and would break other builds.
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "prerender"
|
|
|
|
:source-paths ["prerender"]
|
2017-10-18 11:25:41 +00:00
|
|
|
:compiler {:main "sitetools.prerender"
|
|
|
|
:target :nodejs
|
|
|
|
:output-dir "target/cljsbuild/prerender/out"
|
2018-04-17 17:24:41 +00:00
|
|
|
:output-to "target/cljsbuild/prerender/main.js"
|
2018-11-14 20:40:15 +00:00
|
|
|
:npm-deps true
|
2018-04-17 17:24:41 +00:00
|
|
|
:aot-cache true}}
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "node-test"
|
|
|
|
:source-paths ["test/reagenttest/runtests.cljs"]
|
2018-04-17 17:24:41 +00:00
|
|
|
:watch-paths ["src" "test"]
|
2017-10-18 11:25:41 +00:00
|
|
|
:compiler {:main "reagenttest.runtests"
|
|
|
|
:target :nodejs
|
|
|
|
:parallel-build true
|
|
|
|
:optimizations :none
|
|
|
|
:output-dir "target/cljsbuild/node-test/out"
|
2018-04-03 07:33:01 +00:00
|
|
|
:output-to "target/cljsbuild/node-test/main.js"
|
2018-04-17 17:24:41 +00:00
|
|
|
:npm-deps false
|
2018-04-19 16:35:06 +00:00
|
|
|
:aot-cache true
|
|
|
|
:checked-arrays :warn}}
|
2018-04-03 07:33:01 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "node-test-npm"
|
|
|
|
:source-paths ["test/reagenttest/runtests.cljs"]
|
2018-04-17 17:24:41 +00:00
|
|
|
:watch-paths ["src" "test"]
|
2018-04-03 07:33:01 +00:00
|
|
|
:compiler {:main "reagenttest.runtests"
|
|
|
|
:target :nodejs
|
|
|
|
:parallel-build true
|
|
|
|
:optimizations :none
|
|
|
|
:output-dir "target/cljsbuild/node-test-npm/out"
|
2018-04-17 17:24:41 +00:00
|
|
|
:output-to "target/cljsbuild/node-test-npm/main.js"
|
2018-11-14 20:40:15 +00:00
|
|
|
:npm-deps true
|
2018-04-19 16:35:06 +00:00
|
|
|
:aot-cache true
|
|
|
|
:checked-arrays :warn}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2018-04-17 17:24:41 +00:00
|
|
|
;; With :advanched source-paths doesn't matter that much as
|
|
|
|
;; Cljs compiler will only read :main file.
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "prod"
|
|
|
|
:source-paths ["demo"]
|
2017-10-21 17:17:29 +00:00
|
|
|
:compiler {:main "reagentdemo.prod"
|
2017-10-18 11:25:41 +00:00
|
|
|
:optimizations :advanced
|
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
|
|
|
;; :pseudo-names true
|
2018-04-16 16:50:32 +00:00
|
|
|
:stable-names true
|
2017-10-18 11:25:41 +00:00
|
|
|
:output-to "target/cljsbuild/prod/public/js/main.js"
|
|
|
|
:output-dir "target/cljsbuild/prod/out" ;; Outside of public, not published
|
2018-04-17 17:24:41 +00:00
|
|
|
:npm-deps false
|
|
|
|
:aot-cache true}}
|
2018-04-03 08:56:49 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "prod-npm"
|
|
|
|
:source-paths ["demo"]
|
2018-04-03 08:56:49 +00:00
|
|
|
:compiler {:main "reagentdemo.prod"
|
|
|
|
:optimizations :advanced
|
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
2018-04-16 16:50:32 +00:00
|
|
|
:stable-names true
|
2018-04-03 08:56:49 +00:00
|
|
|
:output-to "target/cljsbuild/prod-npm/public/js/main.js"
|
|
|
|
:output-dir "target/cljsbuild/prod-npm/out" ;; Outside of public, not published
|
2018-04-17 17:24:41 +00:00
|
|
|
:closure-warnings {:global-this :off}
|
2018-11-14 20:40:15 +00:00
|
|
|
:npm-deps true
|
2018-04-17 17:24:41 +00:00
|
|
|
:aot-cache true}}
|
2017-10-18 11:25:41 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "prod-test"
|
|
|
|
:source-paths ["test"]
|
2017-10-18 11:25:41 +00:00
|
|
|
:compiler {:main "reagenttest.runtests"
|
|
|
|
:optimizations :advanced
|
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
|
|
|
:output-to "target/cljsbuild/prod-test/main.js"
|
|
|
|
:output-dir "target/cljsbuild/prod-test/out"
|
2018-04-03 07:33:01 +00:00
|
|
|
:closure-warnings {:global-this :off}
|
|
|
|
:npm-deps false
|
2018-04-19 16:35:06 +00:00
|
|
|
:aot-cache true
|
|
|
|
:checked-arrays :warn}}
|
2018-04-03 07:33:01 +00:00
|
|
|
|
2018-04-27 19:21:22 +00:00
|
|
|
{:id "prod-test-npm"
|
|
|
|
:source-paths ["test"]
|
2018-04-03 07:33:01 +00:00
|
|
|
:compiler {:main "reagenttest.runtests"
|
|
|
|
:optimizations :advanced
|
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
|
|
|
;; :pseudo-names true
|
|
|
|
:output-to "target/cljsbuild/prod-test-npm/main.js"
|
|
|
|
:output-dir "target/cljsbuild/prod-test-npm/out"
|
|
|
|
:closure-warnings {:global-this :off}
|
2018-11-14 20:40:15 +00:00
|
|
|
:npm-deps true
|
2018-04-19 16:35:06 +00:00
|
|
|
:aot-cache true
|
2018-12-31 11:07:05 +00:00
|
|
|
:checked-arrays :warn}}]})
|