mirror of https://github.com/status-im/reagent.git
Update examples
This commit is contained in:
parent
b2778da841
commit
ad5475ca1f
|
@ -1,6 +1,6 @@
|
|||
# Reagent example app
|
||||
|
||||
Run "`lein figwheel`" in a terminal to compile the app, and then open example.html.
|
||||
Run "`lein figwheel`" in a terminal to compile the app, and then open http://localhost:3449
|
||||
|
||||
Any changes to ClojureScript source files (in `src`) will be reflected in the running page immediately (while "`lein figwheel`" is running).
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
(defproject geometry-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]]
|
||||
[org.clojure/clojurescript "1.10.597"]
|
||||
[reagent "0.10.0"]
|
||||
[figwheel "0.5.19"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
[lein-figwheel "0.5.19"]]
|
||||
|
||||
:hooks [leiningen.cljsbuild]
|
||||
:resource-paths ["resources" "target"]
|
||||
:clean-targets ^{:protect false} [:target-path]
|
||||
|
||||
:profiles {:dev {:cljsbuild
|
||||
{:builds {:client
|
||||
|
@ -21,9 +22,11 @@
|
|||
:elide-asserts true
|
||||
:pretty-print false}}}}}}
|
||||
|
||||
:figwheel {:repl false}
|
||||
:figwheel {:repl false
|
||||
:http-server-root "public"}
|
||||
|
||||
:cljsbuild {:builds {:client
|
||||
{:source-paths ["src"]
|
||||
:compiler {:output-dir "target/client"
|
||||
:output-to "target/client.js"}}}})
|
||||
:compiler {:output-dir "target/public/client"
|
||||
:asset-path "client"
|
||||
:output-to "target/public/client.js"}}}})
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div id="app">
|
||||
<h1>Reagent example app – see README.md</h1>
|
||||
</div>
|
||||
<script src="target/client.js"></script>
|
||||
<script src="client.js"></script>
|
||||
<script>
|
||||
geometry.core.run();
|
||||
</script>
|
|
@ -1,12 +1,12 @@
|
|||
(defproject reagent/react-sortable-hoc-example "0.1.0"
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]
|
||||
[cljsjs/react-sortable-hoc "0.8.2-0"]]
|
||||
:dependencies [[org.clojure/clojure "1.10.1"]
|
||||
[org.clojure/clojurescript "1.10.597"]
|
||||
[reagent "0.10.0"]
|
||||
[figwheel "0.5.19"]
|
||||
[cljsjs/react-sortable-hoc "1.11.0-0"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
[lein-figwheel "0.5.19"]]
|
||||
|
||||
:figwheel {:repl false
|
||||
:http-server-root "public"}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Reagent example app
|
||||
|
||||
Run "`lein figwheel`" in a terminal to compile the app, and then open example.html.
|
||||
Run "`lein figwheel`" in a terminal to compile the app, and then open http://localhost:3449
|
||||
|
||||
Any changes to ClojureScript source files (in `src`) will be reflected in the running page immediately (while "`lein figwheel`" is running).
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
|
||||
(defproject simple-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]]
|
||||
:dependencies [[org.clojure/clojure "1.10.1"]
|
||||
[org.clojure/clojurescript "1.10.597"]
|
||||
[reagent "0.10.0"]
|
||||
[figwheel "0.5.19"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
[lein-figwheel "0.5.19"]]
|
||||
|
||||
:hooks [leiningen.cljsbuild]
|
||||
:resource-paths ["resources" "target"]
|
||||
:clean-targets ^{:protect false} [:target-path]
|
||||
|
||||
:profiles {:dev {:cljsbuild
|
||||
{:builds {:client
|
||||
|
@ -22,9 +22,11 @@
|
|||
:elide-asserts true
|
||||
:pretty-print false}}}}}}
|
||||
|
||||
:figwheel {:repl false}
|
||||
:figwheel {:repl false
|
||||
:http-server-root "public"}
|
||||
|
||||
:cljsbuild {:builds {:client
|
||||
{:source-paths ["src"]
|
||||
:compiler {:output-dir "target/client"
|
||||
:output-to "target/client.js"}}}})
|
||||
:compiler {:output-dir "target/public/client"
|
||||
:asset-path "client"
|
||||
:output-to "target/public/client.js"}}}})
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div id="app">
|
||||
<h1>Reagent example app – see README.md</h1>
|
||||
</div>
|
||||
<script src="target/client.js"></script>
|
||||
<script src="client.js"></script>
|
||||
<script>
|
||||
simpleexample.core.run();
|
||||
</script>
|
|
@ -1,6 +1,6 @@
|
|||
# Reagent example app
|
||||
|
||||
Run "`lein figwheel`" in a terminal to compile the app, and then open example.html.
|
||||
Run "`lein figwheel`" in a terminal to compile the app, and then open http://localhost:3449
|
||||
|
||||
Any changes to ClojureScript source files (in `src`) will be reflected in the running page immediately (while "`lein figwheel`" is running).
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
(defproject todomvc-reagent "0.6.0"
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.10.516"]
|
||||
[reagent "0.8.1"]
|
||||
[figwheel "0.5.18"]]
|
||||
[org.clojure/clojurescript "1.10.597"]
|
||||
[reagent "0.10.0"]
|
||||
[figwheel "0.5.19"]]
|
||||
|
||||
:plugins [[lein-cljsbuild "1.1.7"]
|
||||
[lein-figwheel "0.5.18"]]
|
||||
[lein-figwheel "0.5.19"]]
|
||||
|
||||
:hooks [leiningen.cljsbuild]
|
||||
:resource-paths ["resources" "target"]
|
||||
:clean-targets ^{:protect false} [:target-path]
|
||||
|
||||
:profiles {:dev {:cljsbuild
|
||||
{:builds {:client
|
||||
|
@ -21,9 +22,11 @@
|
|||
:elide-asserts true
|
||||
:pretty-print false}}}}}}
|
||||
|
||||
:figwheel {:repl false}
|
||||
:figwheel {:repl false
|
||||
:http-server-root "public"}
|
||||
|
||||
:cljsbuild {:builds {:client
|
||||
{:source-paths ["src"]
|
||||
:compiler {:output-dir "target/client"
|
||||
:output-to "target/client.js"}}}})
|
||||
:compiler {:output-dir "target/public/client"
|
||||
:asset-path "client"
|
||||
:output-to "target/public/client.js"}}}})
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div id="app">
|
||||
<h1>Reagent example app – see README.md</h1>
|
||||
</div>
|
||||
<script src="target/client.js"></script>
|
||||
<script src="client.js"></script>
|
||||
<script>
|
||||
todomvc.core.run();
|
||||
</script>
|
Loading…
Reference in New Issue