2017-10-20 08:08:51 +00:00
|
|
|
(defproject reagent "0.8.0-alpha2"
|
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-10-12 10:52:27 +00:00
|
|
|
[org.clojure/clojurescript "1.9.946"]
|
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.
|
2017-09-28 19:15:19 +00:00
|
|
|
[cljsjs/react "15.6.2-0"]
|
|
|
|
[cljsjs/react-dom "15.6.2-0"]
|
|
|
|
[cljsjs/react-dom-server "15.6.2-0"]
|
|
|
|
[cljsjs/create-react-class "15.6.2-0"]]
|
2015-02-07 08:30:20 +00:00
|
|
|
|
2017-09-28 19:15:19 +00:00
|
|
|
:plugins [[lein-cljsbuild "1.1.7"]
|
2017-10-12 10:52:27 +00:00
|
|
|
[lein-doo "0.1.8"]
|
2017-10-18 11:25:41 +00:00
|
|
|
[lein-codox "0.10.3"]
|
|
|
|
[lein-figwheel "0.5.14"]]
|
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
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:profiles {:react-16 {:dependencies [[cljsjs/react "16.0.0-0"]
|
2017-10-13 11:09:59 +00:00
|
|
|
[cljsjs/react-dom "16.0.0-0"]
|
|
|
|
[cljsjs/react-dom-server "16.0.0-0"]]}
|
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:dev {:dependencies [[figwheel "0.5.14"]
|
|
|
|
[doo "0.1.8"]]
|
|
|
|
:source-paths ["demo" "examples/todomvc/src" "examples/simple/src" "examples/geometry/src"]
|
|
|
|
:resource-paths ["site" "target/cljsbuild/client"]}}
|
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
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:figwheel {:http-server-root "public" ;; assumes "resources"
|
|
|
|
:css-dirs ["site/public/css"]
|
|
|
|
:repl false}
|
2017-03-10 22:36:23 +00:00
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
;; No profiles and merging - just manual configuration for each build type
|
|
|
|
:cljsbuild
|
|
|
|
{:builds
|
|
|
|
{:client
|
|
|
|
{:source-paths ["demo" "test"]
|
|
|
|
:figwheel true
|
|
|
|
:compiler {:parallel-build true
|
|
|
|
:source-map true
|
|
|
|
:optimizations :none
|
|
|
|
; :main "reagentdemo.core"
|
|
|
|
:main "reagentdemo.dev"
|
|
|
|
:output-dir "target/cljsbuild/client/public/js/out"
|
|
|
|
:output-to "target/cljsbuild/client/public/js/main.js"
|
|
|
|
:asset-path "js/out"
|
|
|
|
;; add process.env.node_env preload
|
|
|
|
:process-shim true}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:test
|
|
|
|
{:source-paths ["test"]
|
|
|
|
:compiler {:parallel-build true
|
|
|
|
:source-map true
|
|
|
|
:optimizations :none
|
|
|
|
:main "reagenttest.runtests"
|
|
|
|
:asset-path "js/out"
|
|
|
|
:output-dir "target/cljsbuild/test/out"
|
|
|
|
:output-to "target/cljsbuild/test/main.js"
|
|
|
|
;; add process.env.node_env preload
|
|
|
|
:process-shim true}}
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:prerender
|
|
|
|
{:source-paths ["demo"]
|
|
|
|
:compiler {:main "sitetools.prerender"
|
|
|
|
:target :nodejs
|
|
|
|
:process-shim false
|
|
|
|
:output-dir "target/cljsbuild/prerender/out"
|
|
|
|
:output-to "target/cljsbuild/prerender/main.js"}}
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:node-test
|
|
|
|
{:source-paths ["test"]
|
|
|
|
:compiler {:main "reagenttest.runtests"
|
|
|
|
:target :nodejs
|
|
|
|
:parallel-build true
|
|
|
|
:source-map true
|
|
|
|
:optimizations :none
|
|
|
|
:output-dir "target/cljsbuild/node-test/out"
|
|
|
|
:output-to "target/cljsbuild/node-test/main.js"}}
|
2016-04-30 20:45:04 +00:00
|
|
|
|
2017-10-18 11:25:41 +00:00
|
|
|
:prod
|
|
|
|
{:source-paths ["demo"]
|
|
|
|
:compiler {:main "reagentdemo.core"
|
|
|
|
:optimizations :advanced
|
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
|
|
|
;; :pseudo-names true
|
|
|
|
:output-to "target/cljsbuild/prod/public/js/main.js"
|
|
|
|
:output-dir "target/cljsbuild/prod/out" ;; Outside of public, not published
|
|
|
|
:closure-warnings {:global-this :off}}}
|
|
|
|
|
|
|
|
:prod-test
|
|
|
|
{:source-paths ["demo"]
|
|
|
|
:compiler {:main "reagenttest.runtests"
|
|
|
|
:optimizations :advanced
|
|
|
|
:elide-asserts true
|
|
|
|
:pretty-print false
|
|
|
|
;; :pseudo-names true
|
|
|
|
:output-to "target/cljsbuild/prod-test/main.js"
|
|
|
|
:output-dir "target/cljsbuild/prod-test/out"
|
|
|
|
:closure-warnings {:global-this :off}}}}})
|