Skip to content

Commit

Permalink
webly.spa.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Apr 4, 2024
1 parent 733c8fb commit 1410451
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
15 changes: 9 additions & 6 deletions demo-webly/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"resources"]
:deps {org.pinkgorilla/webly {:local/root "../webly" :deps/manifest :deps}
; lazy ui modules:
org.pinkgorilla/ui-highcharts {:mvn/version "0.0.27"}
org.pinkgorilla/ui-vega {:mvn/version "0.0.31"}
org.pinkgorilla/ui-highcharts {:mvn/version "0.0.28"}
org.pinkgorilla/ui-vega {:mvn/version "0.2.216"}
org.pinkgorilla/ui-tailwind {:mvn/version "0.0.5"}
org.pinkgorilla/oauth2 {:mvn/version "0.0.25"}
}
Expand All @@ -13,7 +13,7 @@
"resources"
"test"
"test/resources"]
:extra-deps {org.pinkgorilla/ui-repl {:mvn/version "0.0.74"} ; http cors test
:extra-deps {org.pinkgorilla/ui-repl {:mvn/version "0.1.93"} ; http cors test
io.github.cognitect-labs/test-runner
{:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "cc75980b43011773162b485f46f939dc5fba91e4"}
Expand All @@ -28,7 +28,7 @@
; 2. run unit tests

; BUILD BUNDLE (then exit)
:webly {:extra-deps {org.pinkgorilla/ui-repl {:mvn/version "0.1.92"} ; http cors test
:webly {:extra-deps {org.pinkgorilla/ui-repl {:mvn/version "0.1.93"} ; http cors test
}
:extra-paths ["src" "resources" "test" "test/resources"]
:exec-fn webly.app.app/webly-build
Expand Down Expand Up @@ -66,9 +66,12 @@
:jetty {:exec-args {:profile "jetty"}}
:watch {:exec-args {:profile "watch2"}}

:demo-build {:extra-deps {org.pinkgorilla/ui-highcharts {:mvn/version "0.0.26"}
org.pinkgorilla/ui-vega {:mvn/version "0.0.31"}}
:demo-build {:extra-deps {org.pinkgorilla/ui-highcharts {:mvn/version "0.0.28"}
org.pinkgorilla/ui-vega {:mvn/version "0.2.216"}}
:exec-fn demo.test/test}

;
}}



2 changes: 1 addition & 1 deletion spa/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
org.pinkgorilla/ui-tailwind {:mvn/version "0.0.5"}
org.pinkgorilla/ui-bidi {:mvn/version "0.0.29"}
org.pinkgorilla/ui-dialog-keybindings {:mvn/version "0.1.6"}
org.pinkgorilla/css-theme {:mvn/version "0.1.4"}
org.pinkgorilla/css-theme {:mvn/version "0.1.5"}

}}

6 changes: 4 additions & 2 deletions spa/resources/ext/webly-spa.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{:name "webly-spa"
:lazy false
:cljs-namespace [webly.spa]
}
:cljs-namespace [webly.spa
webly.spa.resolve]
:cljs-ns-bindings {'webly.spa.resolve {'get-resolver webly.spa.resolve/get-resolver
'set-resolver! webly.spa.resolve/set-resolver!}}}
14 changes: 14 additions & 0 deletions spa/src/webly/spa/resolve.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(ns webly.spa.resolve
(:require
[webly.module.build :refer [webly-resolve]]))


(def resolver-a (atom webly-resolve))


(defn set-resolver! [resolver-fn]
(reset! resolver-a resolver-fn))

(defn get-resolver []
@resolver-a)

0 comments on commit 1410451

Please sign in to comment.