mirror of https://github.com/status-im/reagent.git
Simplify project.clj
This commit is contained in:
parent
81a1cbcaed
commit
4596244c3b
9
Makefile
9
Makefile
|
@ -1,9 +1,7 @@
|
|||
PORT = 4562
|
||||
|
||||
PROF = dev,demo
|
||||
PROF = dev,demo,test
|
||||
# PROF = dev,test,srcmap
|
||||
# PROF = prod,test
|
||||
PROF = dev
|
||||
# PROF = prod,srcmap
|
||||
# PROF = prod
|
||||
|
||||
CLJSBUILD = client
|
||||
|
@ -24,6 +22,9 @@ openbrowser:
|
|||
buildrun: setup
|
||||
lein -o with-profile $(PROF) cljsbuild auto $(CLJSBUILD)
|
||||
|
||||
runtest:
|
||||
$(MAKE) PROF=test,$(PROF)
|
||||
|
||||
install: leinbuild
|
||||
lein install
|
||||
|
||||
|
|
17
project.clj
17
project.clj
|
@ -1,12 +1,12 @@
|
|||
|
||||
|
||||
(defproject reagent "0.2.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-2138"]]
|
||||
:plugins [[lein-cljsbuild "1.0.1"]]
|
||||
:plugins [[lein-cljsbuild "1.0.1"]
|
||||
[com.cemerick/clojurescript.test "0.2.1"]]
|
||||
:profiles {:prod {:cljsbuild
|
||||
{:builds
|
||||
{:client {:compiler
|
||||
|
@ -16,14 +16,7 @@
|
|||
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
|
||||
:cljsbuild
|
||||
{:builds
|
||||
{:client {:source-paths ["test"
|
||||
"examples/todomvc/src"
|
||||
"examples/simple/src"]}}}}
|
||||
:demo {:cljsbuild
|
||||
{:builds
|
||||
{:client {:source-paths ["demo"
|
||||
"examples/todomvc/src"
|
||||
"examples/simple/src"]}}}}
|
||||
{:client {:source-paths ["test"]}}}}
|
||||
:srcmap {:cljsbuild
|
||||
{:builds
|
||||
{:client
|
||||
|
@ -33,7 +26,9 @@
|
|||
:source-paths ["src"]
|
||||
:cljsbuild
|
||||
{:builds
|
||||
{:client {:source-paths ["src"]
|
||||
{: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"
|
||||
|
|
|
@ -14,8 +14,11 @@
|
|||
<h1>This will become an example when compiled</h1>
|
||||
<script type="text/javascript" src="../target/cljs-client.js"></script>
|
||||
<script type="text/javascript">
|
||||
if (typeof runtests !== 'undefined') {
|
||||
runtests.mounttests();
|
||||
<!-- demo.mountdemo(); -->
|
||||
} else {
|
||||
demo.mountdemo();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue