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
|
PORT = 4562
|
||||||
|
|
||||||
PROF = dev,demo
|
PROF = dev
|
||||||
PROF = dev,demo,test
|
# PROF = prod,srcmap
|
||||||
# PROF = dev,test,srcmap
|
|
||||||
# PROF = prod,test
|
|
||||||
# PROF = prod
|
# PROF = prod
|
||||||
|
|
||||||
CLJSBUILD = client
|
CLJSBUILD = client
|
||||||
|
@ -24,6 +22,9 @@ openbrowser:
|
||||||
buildrun: setup
|
buildrun: setup
|
||||||
lein -o with-profile $(PROF) cljsbuild auto $(CLJSBUILD)
|
lein -o with-profile $(PROF) cljsbuild auto $(CLJSBUILD)
|
||||||
|
|
||||||
|
runtest:
|
||||||
|
$(MAKE) PROF=test,$(PROF)
|
||||||
|
|
||||||
install: leinbuild
|
install: leinbuild
|
||||||
lein install
|
lein install
|
||||||
|
|
||||||
|
|
17
project.clj
17
project.clj
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
|
|
||||||
(defproject reagent "0.2.0-SNAPSHOT"
|
(defproject reagent "0.2.0-SNAPSHOT"
|
||||||
:url "http://github.com/holmsand/reagent"
|
:url "http://github.com/holmsand/reagent"
|
||||||
:license {:name "MIT"}
|
:license {:name "MIT"}
|
||||||
:description "A simple ClojureScript interface to React"
|
:description "A simple ClojureScript interface to React"
|
||||||
:dependencies [[org.clojure/clojure "1.5.1"]
|
:dependencies [[org.clojure/clojure "1.5.1"]
|
||||||
[org.clojure/clojurescript "0.0-2138"]]
|
[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
|
:profiles {:prod {:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:client {:compiler
|
{:client {:compiler
|
||||||
|
@ -16,14 +16,7 @@
|
||||||
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
|
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
|
||||||
:cljsbuild
|
:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:client {:source-paths ["test"
|
{:client {:source-paths ["test"]}}}}
|
||||||
"examples/todomvc/src"
|
|
||||||
"examples/simple/src"]}}}}
|
|
||||||
:demo {:cljsbuild
|
|
||||||
{:builds
|
|
||||||
{:client {:source-paths ["demo"
|
|
||||||
"examples/todomvc/src"
|
|
||||||
"examples/simple/src"]}}}}
|
|
||||||
:srcmap {:cljsbuild
|
:srcmap {:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:client
|
{:client
|
||||||
|
@ -33,7 +26,9 @@
|
||||||
:source-paths ["src"]
|
:source-paths ["src"]
|
||||||
:cljsbuild
|
:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:client {:source-paths ["src"]
|
{:client {:source-paths ["src" "demo" "examples/todomvc/src"
|
||||||
|
"examples/simple/src"]
|
||||||
|
:notify-command ["node" "./bin/gen-site.js"]
|
||||||
:compiler
|
:compiler
|
||||||
{:preamble ["reagent/react.js"]
|
{:preamble ["reagent/react.js"]
|
||||||
:output-dir "target/client"
|
:output-dir "target/client"
|
||||||
|
|
|
@ -14,8 +14,11 @@
|
||||||
<h1>This will become an example when compiled</h1>
|
<h1>This will become an example when compiled</h1>
|
||||||
<script type="text/javascript" src="../target/cljs-client.js"></script>
|
<script type="text/javascript" src="../target/cljs-client.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
if (typeof runtests !== 'undefined') {
|
||||||
runtests.mounttests();
|
runtests.mounttests();
|
||||||
<!-- demo.mountdemo(); -->
|
} else {
|
||||||
|
demo.mountdemo();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue