2013-12-16 22:19:36 +00:00
|
|
|
|
2014-12-10 11:57:34 +00:00
|
|
|
(defproject reagent "0.5.0-SNAPSHOT"
|
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
|
|
|
|
2014-09-14 08:56:12 +00:00
|
|
|
:dependencies [[org.clojure/clojure "1.6.0"]
|
2015-02-05 10:39:09 +00:00
|
|
|
[org.clojure/clojurescript "0.0-2760"]
|
2015-01-29 13:49:01 +00:00
|
|
|
[cljsjs/react "0.12.2-5"]]
|
|
|
|
:plugins [[lein-cljsbuild "1.0.4"]]
|
2014-02-11 16:10:04 +00:00
|
|
|
:resource-paths ["vendor"]
|
2014-11-29 17:30:24 +00:00
|
|
|
:source-paths ["src"]
|
|
|
|
|
2014-11-29 22:26:42 +00:00
|
|
|
:profiles {:base {:cljsbuild {:builds
|
|
|
|
{:client
|
|
|
|
{:source-paths
|
|
|
|
["src"
|
|
|
|
"demo"
|
|
|
|
"examples/todomvc/src"
|
|
|
|
"examples/simple/src"
|
|
|
|
"examples/geometry/src"]}}}}
|
|
|
|
|
2015-01-31 22:09:42 +00:00
|
|
|
:test {:cljsbuild {:builds
|
2014-11-29 22:26:42 +00:00
|
|
|
{:client {:source-paths ["test"]}}}}
|
|
|
|
|
|
|
|
:dev-base {:dependencies
|
2015-01-29 13:49:01 +00:00
|
|
|
[[figwheel "0.2.2-SNAPSHOT"]]
|
|
|
|
:plugins [[lein-figwheel "0.2.2-SNAPSHOT"]]
|
2014-12-07 19:26:29 +00:00
|
|
|
:source-paths ["demo"] ;; for lighttable
|
2014-11-29 17:30:24 +00:00
|
|
|
:resource-paths ["site" "outsite"]
|
|
|
|
:figwheel {:css-dirs ["site/public/css"]}
|
|
|
|
:cljsbuild {:builds
|
|
|
|
{:client
|
|
|
|
{:source-paths ["env/dev"]
|
2015-01-29 13:49:01 +00:00
|
|
|
:compiler {:main "devsetup"
|
|
|
|
:source-map true
|
2015-01-30 16:09:24 +00:00
|
|
|
:source-map-timestamp true
|
2014-11-29 17:30:24 +00:00
|
|
|
:optimizations :none
|
|
|
|
:output-dir
|
|
|
|
"outsite/public/js/out"}}}}}
|
|
|
|
|
2014-11-29 18:51:45 +00:00
|
|
|
:site {:resource-paths ^:replace ["outsite" "vendor"]
|
2014-11-29 17:30:24 +00:00
|
|
|
:figwheel {:css-dirs ^:replace ["outsite/public/css"]}
|
|
|
|
:cljsbuild {:builds
|
|
|
|
{:client
|
|
|
|
{:notify-command
|
|
|
|
["node" "bin/gen-site.js"]}}}}
|
|
|
|
|
|
|
|
:prod [:base :site
|
|
|
|
{:cljsbuild {:builds
|
|
|
|
{:client
|
|
|
|
{:source-paths ["env/prod"]
|
2015-01-29 13:49:01 +00:00
|
|
|
:compiler {:main "prodsetup"
|
|
|
|
:optimizations :advanced
|
2014-11-29 17:30:24 +00:00
|
|
|
:elide-asserts true
|
2014-12-01 13:37:54 +00:00
|
|
|
:pretty-print false
|
2014-11-29 17:30:24 +00:00
|
|
|
:output-dir "target/client"}}}}}]
|
|
|
|
|
2014-11-29 22:26:42 +00:00
|
|
|
:dev [:test :base :dev-base]
|
|
|
|
:prod-test [:test :prod]}
|
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"
|
|
|
|
"outsite/public/index.html"
|
|
|
|
"out"]
|
|
|
|
|
|
|
|
:cljsbuild {:builds
|
2014-11-29 22:26:42 +00:00
|
|
|
{:client {:compiler
|
2015-01-29 13:49:01 +00:00
|
|
|
{:output-to "outsite/public/js/main.js"
|
|
|
|
:asset-path "js/out"}}}}
|
2014-11-29 17:30:24 +00:00
|
|
|
|
|
|
|
:figwheel {:http-server-root "public" ;; assumes "resources"
|
2015-01-29 13:49:01 +00:00
|
|
|
:repl false
|
2014-11-29 22:26:42 +00:00
|
|
|
:server-port 3449})
|