Update examples

This commit is contained in:
Juho Teperi 2020-03-28 13:53:07 +02:00
parent b2778da841
commit ad5475ca1f
13 changed files with 46 additions and 38 deletions

View File

@ -1,6 +1,6 @@
# Reagent example app # 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). Any changes to ClojureScript source files (in `src`) will be reflected in the running page immediately (while "`lein figwheel`" is running).

View File

@ -1,13 +1,14 @@
(defproject geometry-reagent "0.6.0" (defproject geometry-reagent "0.6.0"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.516"] [org.clojure/clojurescript "1.10.597"]
[reagent "0.8.1"] [reagent "0.10.0"]
[figwheel "0.5.18"]] [figwheel "0.5.19"]]
:plugins [[lein-cljsbuild "1.1.7"] :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 :profiles {:dev {:cljsbuild
{:builds {:client {:builds {:client
@ -21,9 +22,11 @@
:elide-asserts true :elide-asserts true
:pretty-print false}}}}}} :pretty-print false}}}}}}
:figwheel {:repl false} :figwheel {:repl false
:http-server-root "public"}
:cljsbuild {:builds {:client :cljsbuild {:builds {:client
{:source-paths ["src"] {:source-paths ["src"]
:compiler {:output-dir "target/client" :compiler {:output-dir "target/public/client"
:output-to "target/client.js"}}}}) :asset-path "client"
:output-to "target/public/client.js"}}}})

View File

@ -9,7 +9,7 @@
<div id="app"> <div id="app">
<h1>Reagent example app see README.md</h1> <h1>Reagent example app see README.md</h1>
</div> </div>
<script src="target/client.js"></script> <script src="client.js"></script>
<script> <script>
geometry.core.run(); geometry.core.run();
</script> </script>

View File

@ -1,12 +1,12 @@
(defproject reagent/react-sortable-hoc-example "0.1.0" (defproject reagent/react-sortable-hoc-example "0.1.0"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.516"] [org.clojure/clojurescript "1.10.597"]
[reagent "0.8.1"] [reagent "0.10.0"]
[figwheel "0.5.18"] [figwheel "0.5.19"]
[cljsjs/react-sortable-hoc "0.8.2-0"]] [cljsjs/react-sortable-hoc "1.11.0-0"]]
:plugins [[lein-cljsbuild "1.1.7"] :plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]] [lein-figwheel "0.5.19"]]
:figwheel {:repl false :figwheel {:repl false
:http-server-root "public"} :http-server-root "public"}

View File

@ -1,6 +1,6 @@
# Reagent example app # 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). Any changes to ClojureScript source files (in `src`) will be reflected in the running page immediately (while "`lein figwheel`" is running).

View File

@ -1,14 +1,14 @@
(defproject simple-reagent "0.6.0" (defproject simple-reagent "0.6.0"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.516"] [org.clojure/clojurescript "1.10.597"]
[reagent "0.8.1"] [reagent "0.10.0"]
[figwheel "0.5.18"]] [figwheel "0.5.19"]]
:plugins [[lein-cljsbuild "1.1.7"] :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 :profiles {:dev {:cljsbuild
{:builds {:client {:builds {:client
@ -22,9 +22,11 @@
:elide-asserts true :elide-asserts true
:pretty-print false}}}}}} :pretty-print false}}}}}}
:figwheel {:repl false} :figwheel {:repl false
:http-server-root "public"}
:cljsbuild {:builds {:client :cljsbuild {:builds {:client
{:source-paths ["src"] {:source-paths ["src"]
:compiler {:output-dir "target/client" :compiler {:output-dir "target/public/client"
:output-to "target/client.js"}}}}) :asset-path "client"
:output-to "target/public/client.js"}}}})

View File

@ -9,7 +9,7 @@
<div id="app"> <div id="app">
<h1>Reagent example app see README.md</h1> <h1>Reagent example app see README.md</h1>
</div> </div>
<script src="target/client.js"></script> <script src="client.js"></script>
<script> <script>
simpleexample.core.run(); simpleexample.core.run();
</script> </script>

View File

@ -1,6 +1,6 @@
# Reagent example app # 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). Any changes to ClojureScript source files (in `src`) will be reflected in the running page immediately (while "`lein figwheel`" is running).

View File

@ -1,13 +1,14 @@
(defproject todomvc-reagent "0.6.0" (defproject todomvc-reagent "0.6.0"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.516"] [org.clojure/clojurescript "1.10.597"]
[reagent "0.8.1"] [reagent "0.10.0"]
[figwheel "0.5.18"]] [figwheel "0.5.19"]]
:plugins [[lein-cljsbuild "1.1.7"] :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 :profiles {:dev {:cljsbuild
{:builds {:client {:builds {:client
@ -21,9 +22,11 @@
:elide-asserts true :elide-asserts true
:pretty-print false}}}}}} :pretty-print false}}}}}}
:figwheel {:repl false} :figwheel {:repl false
:http-server-root "public"}
:cljsbuild {:builds {:client :cljsbuild {:builds {:client
{:source-paths ["src"] {:source-paths ["src"]
:compiler {:output-dir "target/client" :compiler {:output-dir "target/public/client"
:output-to "target/client.js"}}}}) :asset-path "client"
:output-to "target/public/client.js"}}}})

View File

@ -9,7 +9,7 @@
<div id="app"> <div id="app">
<h1>Reagent example app see README.md</h1> <h1>Reagent example app see README.md</h1>
</div> </div>
<script src="target/client.js"></script> <script src="client.js"></script>
<script> <script>
todomvc.core.run(); todomvc.core.run();
</script> </script>