Update example deps, frontend -> spec

This commit is contained in:
Tommi Reiman 2019-01-17 19:29:21 +02:00
parent bf709d1faf
commit 60f64856d2
9 changed files with 21 additions and 22 deletions

View file

@ -7,18 +7,18 @@
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring-server "0.5.0"] [ring-server "0.5.0"]
[reagent "0.8.1"] [reagent "0.8.1"]
[ring "1.6.3"] [ring "1.7.1"]
[compojure "1.6.1"] [compojure "1.6.1"]
[hiccup "1.0.5"] [hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.339"] [org.clojure/clojurescript "1.10.439"]
[metosin/reitit "0.2.10"] [metosin/reitit "0.2.10"]
[metosin/reitit-schema "0.2.10"] [metosin/reitit-schema "0.2.10"]
[metosin/reitit-frontend "0.2.10"] [metosin/reitit-frontend "0.2.10"]
;; Just for pretty printting the match ;; Just for pretty printting the match
[fipp "0.6.12"]] [fipp "0.6.14"]]
:plugins [[lein-cljsbuild "1.1.7"] :plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.16"]] [lein-figwheel "0.5.18"]]
:source-paths [] :source-paths []
:resource-paths ["resources" "target/cljsbuild"] :resource-paths ["resources" "target/cljsbuild"]

View file

@ -7,18 +7,18 @@
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring-server "0.5.0"] [ring-server "0.5.0"]
[reagent "0.8.1"] [reagent "0.8.1"]
[ring "1.6.3"] [ring "1.7.1"]
[compojure "1.6.1"] [compojure "1.6.1"]
[hiccup "1.0.5"] [hiccup "1.0.5"]
[org.clojure/clojurescript "1.10.339"] [org.clojure/clojurescript "1.10.439"]
[metosin/reitit "0.2.10"] [metosin/reitit "0.2.10"]
[metosin/reitit-schema "0.2.10"] [metosin/reitit-spec "0.2.10"]
[metosin/reitit-frontend "0.2.10"] [metosin/reitit-frontend "0.2.10"]
;; Just for pretty printting the match ;; Just for pretty printting the match
[fipp "0.6.12"]] [fipp "0.6.14"]]
:plugins [[lein-cljsbuild "1.1.7"] :plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.16"]] [lein-figwheel "0.5.18"]]
:source-paths [] :source-paths []
:resource-paths ["resources" "target/cljsbuild"] :resource-paths ["resources" "target/cljsbuild"]

View file

@ -3,8 +3,8 @@
[reitit.frontend :as rf] [reitit.frontend :as rf]
[reitit.frontend.easy :as rfe] [reitit.frontend.easy :as rfe]
[reitit.coercion :as rc] [reitit.coercion :as rc]
[reitit.coercion.schema :as rsc] [reitit.coercion.spec :as rss]
[schema.core :as s] [spec-tools.data-spec :as ds]
[fipp.edn :as fedn])) [fipp.edn :as fedn]))
(defn home-page [] (defn home-page []
@ -63,12 +63,12 @@
["/item/:id" ["/item/:id"
{:name ::item {:name ::item
:view item-page :view item-page
:parameters {:path {:id s/Int} :parameters {:path {:id int?}
:query {(s/optional-key :foo) s/Keyword}}}]]) :query {(ds/opt :foo) keyword?}}}]])
(defn init! [] (defn init! []
(rfe/start! (rfe/start!
(rf/router routes {:data {:coercion rsc/coercion}}) (rf/router routes {:data {:coercion rss/coercion}})
(fn [m] (reset! match m)) (fn [m] (reset! match m))
;; set to false to enable HistoryAPI ;; set to false to enable HistoryAPI
{:use-fragment true}) {:use-fragment true})

View file

@ -1,7 +1,7 @@
(defproject ring-example "0.1.0-SNAPSHOT" (defproject ring-example "0.1.0-SNAPSHOT"
:description "Reitit Http App with Swagger" :description "Reitit Http App with Swagger"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring/ring-jetty-adapter "1.7.0"] [ring/ring-jetty-adapter "1.7.1"]
[aleph "0.4.6"] [aleph "0.4.6"]
[metosin/reitit "0.2.10"]] [metosin/reitit "0.2.10"]]
:repl-options {:init-ns example.server}) :repl-options {:init-ns example.server})

View file

@ -1,9 +1,9 @@
(defproject ring-example "0.1.0-SNAPSHOT" (defproject ring-example "0.1.0-SNAPSHOT"
:description "Reitit Ring App with Swagger" :description "Reitit Ring App with Swagger"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/core.async "0.4.474"] [org.clojure/core.async "0.4.490"]
[funcool/promesa "1.9.0"] [funcool/promesa "1.9.0"]
[manifold "0.1.8"] [manifold "0.1.8"]
[ring/ring-jetty-adapter "1.7.0"] [ring/ring-jetty-adapter "1.7.1"]
[metosin/reitit "0.2.10"]] [metosin/reitit "0.2.10"]]
:repl-options {:init-ns example.server}) :repl-options {:init-ns example.server})

View file

@ -1,6 +1,5 @@
(defproject just-coercion-with-ring "0.1.0-SNAPSHOT" (defproject just-coercion-with-ring "0.1.0-SNAPSHOT"
:description "Reitit coercion with vanilla ring" :description "Reitit coercion with vanilla ring"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring/ring-jetty-adapter "1.7.0"] [ring/ring-jetty-adapter "1.7.1"]
[metosin/muuntaja "0.4.1"]
[metosin/reitit "0.2.10"]]) [metosin/reitit "0.2.10"]])

View file

@ -1,6 +1,6 @@
(defproject ring-example "0.1.0-SNAPSHOT" (defproject ring-example "0.1.0-SNAPSHOT"
:description "Reitit Ring App" :description "Reitit Ring App"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring/ring-jetty-adapter "1.7.0"] [ring/ring-jetty-adapter "1.7.1"]
[metosin/reitit "0.2.10"]] [metosin/reitit "0.2.10"]]
:repl-options {:init-ns example.server}) :repl-options {:init-ns example.server})

View file

@ -1,7 +1,7 @@
(defproject ring-example "0.1.0-SNAPSHOT" (defproject ring-example "0.1.0-SNAPSHOT"
:description "Reitit Ring App with Swagger" :description "Reitit Ring App with Swagger"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring/ring-jetty-adapter "1.7.0"] [ring/ring-jetty-adapter "1.7.1"]
[metosin/reitit "0.2.10"]] [metosin/reitit "0.2.10"]]
:repl-options {:init-ns example.server} :repl-options {:init-ns example.server}
:profiles{:dev {:dependencies [[ring/ring-mock "0.3.2"]]}}) :profiles{:dev {:dependencies [[ring/ring-mock "0.3.2"]]}})

View file

@ -1,6 +1,6 @@
(defproject ring-example "0.1.0-SNAPSHOT" (defproject ring-example "0.1.0-SNAPSHOT"
:description "Reitit Ring App with Swagger" :description "Reitit Ring App with Swagger"
:dependencies [[org.clojure/clojure "1.10.0"] :dependencies [[org.clojure/clojure "1.10.0"]
[ring/ring-jetty-adapter "1.7.0"] [ring/ring-jetty-adapter "1.7.1"]
[metosin/reitit "0.2.10"]] [metosin/reitit "0.2.10"]]
:repl-options {:init-ns example.server}) :repl-options {:init-ns example.server})