From ad5475ca1fb7ac10757ca6f748b7516f89606118 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Sat, 28 Mar 2020 13:53:07 +0200 Subject: [PATCH] Update examples --- examples/geometry/README.md | 2 +- examples/geometry/project.clj | 19 +++++++++------- .../{ => resources/public}/example.css | 0 .../public/index.html} | 2 +- examples/react-sortable-hoc/project.clj | 12 +++++----- examples/simple/README.md | 2 +- examples/simple/project.clj | 22 ++++++++++--------- .../simple/{ => resources/public}/example.css | 0 .../public/index.html} | 2 +- examples/todomvc/README.md | 2 +- examples/todomvc/project.clj | 19 +++++++++------- .../public/index.html} | 2 +- .../todomvc/{ => resources/public}/todos.css | 0 13 files changed, 46 insertions(+), 38 deletions(-) rename examples/geometry/{ => resources/public}/example.css (100%) rename examples/geometry/{example.html => resources/public/index.html} (87%) rename examples/simple/{ => resources/public}/example.css (100%) rename examples/simple/{example.html => resources/public/index.html} (87%) rename examples/todomvc/{example.html => resources/public/index.html} (87%) rename examples/todomvc/{ => resources/public}/todos.css (100%) diff --git a/examples/geometry/README.md b/examples/geometry/README.md index a2e5bc4..7b9f57b 100644 --- a/examples/geometry/README.md +++ b/examples/geometry/README.md @@ -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). diff --git a/examples/geometry/project.clj b/examples/geometry/project.clj index 64cc84d..2a88e6e 100644 --- a/examples/geometry/project.clj +++ b/examples/geometry/project.clj @@ -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"}}}}) diff --git a/examples/geometry/example.css b/examples/geometry/resources/public/example.css similarity index 100% rename from examples/geometry/example.css rename to examples/geometry/resources/public/example.css diff --git a/examples/geometry/example.html b/examples/geometry/resources/public/index.html similarity index 87% rename from examples/geometry/example.html rename to examples/geometry/resources/public/index.html index ce990ce..120bb7e 100644 --- a/examples/geometry/example.html +++ b/examples/geometry/resources/public/index.html @@ -9,7 +9,7 @@

Reagent example app – see README.md

- + diff --git a/examples/react-sortable-hoc/project.clj b/examples/react-sortable-hoc/project.clj index 490f694..77c2460 100644 --- a/examples/react-sortable-hoc/project.clj +++ b/examples/react-sortable-hoc/project.clj @@ -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"} diff --git a/examples/simple/README.md b/examples/simple/README.md index a2e5bc4..7b9f57b 100644 --- a/examples/simple/README.md +++ b/examples/simple/README.md @@ -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). diff --git a/examples/simple/project.clj b/examples/simple/project.clj index 0177853..3354b70 100644 --- a/examples/simple/project.clj +++ b/examples/simple/project.clj @@ -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"}}}}) diff --git a/examples/simple/example.css b/examples/simple/resources/public/example.css similarity index 100% rename from examples/simple/example.css rename to examples/simple/resources/public/example.css diff --git a/examples/simple/example.html b/examples/simple/resources/public/index.html similarity index 87% rename from examples/simple/example.html rename to examples/simple/resources/public/index.html index a9b7c39..49f4d9a 100644 --- a/examples/simple/example.html +++ b/examples/simple/resources/public/index.html @@ -9,7 +9,7 @@

Reagent example app – see README.md

- + diff --git a/examples/todomvc/README.md b/examples/todomvc/README.md index a2e5bc4..7b9f57b 100644 --- a/examples/todomvc/README.md +++ b/examples/todomvc/README.md @@ -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). diff --git a/examples/todomvc/project.clj b/examples/todomvc/project.clj index 493a5e9..9c90eb7 100644 --- a/examples/todomvc/project.clj +++ b/examples/todomvc/project.clj @@ -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"}}}}) diff --git a/examples/todomvc/example.html b/examples/todomvc/resources/public/index.html similarity index 87% rename from examples/todomvc/example.html rename to examples/todomvc/resources/public/index.html index e0aaeca..1519777 100644 --- a/examples/todomvc/example.html +++ b/examples/todomvc/resources/public/index.html @@ -9,7 +9,7 @@

Reagent example app – see README.md

- + diff --git a/examples/todomvc/todos.css b/examples/todomvc/resources/public/todos.css similarity index 100% rename from examples/todomvc/todos.css rename to examples/todomvc/resources/public/todos.css