2015-03-11 18:15:29 +00:00
|
|
|
(defproject reagent "0.5.1-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-10 13:18:56 +00:00
|
|
|
[org.clojure/clojurescript "0.0-2816"]
|
2015-01-29 13:49:01 +00:00
|
|
|
[cljsjs/react "0.12.2-5"]]
|
2015-02-07 08:30:20 +00:00
|
|
|
|
2015-01-29 13:49:01 +00:00
|
|
|
:plugins [[lein-cljsbuild "1.0.4"]]
|
2015-02-07 08:30:20 +00:00
|
|
|
|
2014-11-29 17:30:24 +00:00
|
|
|
:source-paths ["src"]
|
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
:profiles {:test {:cljsbuild
|
|
|
|
{:builds {:client {:source-paths ["test"]}}}}
|
2014-11-29 22:26:42 +00:00
|
|
|
|
2015-02-11 18:06:38 +00:00
|
|
|
:dev [:test
|
|
|
|
{:dependencies [[figwheel "0.2.3-SNAPSHOT"]]
|
|
|
|
:plugins [[lein-figwheel "0.2.3-SNAPSHOT"]]
|
|
|
|
:source-paths ["demo"] ;; for lighttable
|
|
|
|
:resource-paths ["site" "outsite"]
|
|
|
|
:figwheel {:css-dirs ["site/public/css"]}
|
|
|
|
:cljsbuild
|
|
|
|
{:builds
|
|
|
|
{:client
|
|
|
|
{:source-paths ["env/dev"]
|
|
|
|
:compiler {:main "reagentdemo.dev"
|
|
|
|
:source-map true
|
|
|
|
:source-map-timestamp true
|
|
|
|
:optimizations :none
|
|
|
|
:output-dir "outsite/public/js/out"
|
|
|
|
:asset-path "js/out"}}}}}]
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
:site {:resource-paths ^:replace ["outsite"]
|
2014-11-29 17:30:24 +00:00
|
|
|
:figwheel {:css-dirs ^:replace ["outsite/public/css"]}
|
2015-02-07 08:30:20 +00:00
|
|
|
:cljsbuild
|
|
|
|
{:builds {:client
|
|
|
|
{:notify-command ["node" "bin/gen-site.js"]}}}}
|
2014-11-29 17:30:24 +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
|
|
|
|
:output-dir "target/client"}}}}}]
|
2015-02-11 18:06:38 +00:00
|
|
|
|
|
|
|
:prod-test [:test :prod]
|
2014-11-29 17:30:24 +00:00
|
|
|
|
2015-02-11 18:06:38 +00:00
|
|
|
:dev-notest [:dev
|
|
|
|
{:cljsbuild
|
|
|
|
{:builds {:client
|
|
|
|
{:compiler {:load-tests false}}}}}]}
|
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"
|
|
|
|
"out"]
|
|
|
|
|
2015-02-07 08:30:20 +00:00
|
|
|
:cljsbuild {:builds {:client
|
|
|
|
{:source-paths ["src"
|
|
|
|
"demo"
|
|
|
|
"examples/todomvc/src"
|
|
|
|
"examples/simple/src"
|
|
|
|
"examples/geometry/src"]
|
|
|
|
:compiler {:output-to "outsite/public/js/main.js"}}}}
|
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})
|