reagent/project.clj
Dan Holmsand 3c2c63402e Breaking change: Allow arbitrary arguments to component functions
Previously, the first argument had to be a map, and the rest of the
arguments where passed as a vector as the second argument.

Now [my-comp foo...] generally behaves as (my-comp foo...).

Since `this` is no longer passed to component functions, add
current-component function.

Also change signatures of React callbacks, to reflect that arbitrary
arguments can be passed.

Remove set-props and replace-props for the same reason.

Add argv accessor and set-args instead.
2014-02-08 13:55:01 +01:00

41 lines
1.7 KiB
Clojure

(defproject reagent "0.4.0-SNAPSHOT"
:url "http://github.com/holmsand/reagent"
:license {:name "MIT"}
:description "A simple ClojureScript interface to React"
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-2156"]]
:plugins [[lein-cljsbuild "1.0.1"]
[com.cemerick/clojurescript.test "0.2.1"]]
:profiles {:prod {:cljsbuild
{:builds
{:client {:compiler
{:optimizations :advanced
:elide-asserts true
:preamble ^:replace ["reagent/react.min.js"]
:pretty-print false}}}}}
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
:cljsbuild
{:builds
{:client {:source-paths ^:replace
["test" "src" "demo"
"examples/todomvc/src"
"examples/simple/src"]}}}}
:srcmap {:cljsbuild
{:builds
{:client
{:compiler
{:source-map "target/cljs-client.js.map"
:source-map-path "client"}}}}}}
:source-paths ["src"]
:cljsbuild
{:builds
{:client {:source-paths ["src" "demo" "examples/todomvc/src"
"examples/simple/src"]
:notify-command ["node" "./bin/gen-site.js"]
:compiler
{:preamble ["reagent/react.js"]
:output-dir "target/client"
:output-to "target/cljs-client.js"
:pretty-print true}}}})