mirror of
https://github.com/status-im/reagent.git
synced 2025-01-15 14:24:22 +00:00
7bbe917285
This makes the project.clj a little messier, but makes it a lot easier to use a different version or a custom build of React.
29 lines
1.0 KiB
Clojure
29 lines
1.0 KiB
Clojure
|
|
|
|
(defproject simple-cloact "0.1.0-SNAPSHOT"
|
|
:dependencies [[org.clojure/clojure "1.5.1"]
|
|
[org.clojure/clojurescript "0.0-2138"]
|
|
[cloact "0.1.0-SNAPSHOT"]]
|
|
:plugins [[lein-cljsbuild "1.0.1"]]
|
|
:hooks [leiningen.cljsbuild]
|
|
:profiles {:prod {:cljsbuild
|
|
{:builds
|
|
{:client {:compiler
|
|
{:optimizations :advanced
|
|
:preamble ^:replace ["cloact/react.min.js"]
|
|
:pretty-print false}}}}}
|
|
:srcmap {:cljsbuild
|
|
{:builds
|
|
{:client {:compiler
|
|
{:source-map "target/client.js.map"
|
|
:source-map-path "client"}}}}}}
|
|
:source-paths ["src"]
|
|
:cljsbuild
|
|
{:builds
|
|
{:client {:source-paths ["src"]
|
|
:compiler
|
|
{:preamble ["cloact/react.js"]
|
|
:output-dir "target/client"
|
|
:output-to "target/client.js"
|
|
:pretty-print true}}}})
|