Use replicant via sci.configs (#109)

* Update Replicant plugin to use sci.configs

* Update Replicant to 2025.03.27
This commit is contained in:
Jeroen van Dijk 2025-06-16 16:31:38 +03:00 committed by GitHub
parent 1977424508
commit a1b2723ef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 19 deletions

View file

@ -6,8 +6,8 @@
:git/sha "1e15f0f6a129ef7512351efc65f7475209d8cc4c"} :git/sha "1e15f0f6a129ef7512351efc65f7475209d8cc4c"}
#_{:local/root "../babashka/sci"} #_{:local/root "../babashka/sci"}
reagent/reagent {:mvn/version "1.1.1"} reagent/reagent {:mvn/version "1.1.1"}
no.cjohansen/replicant {:mvn/version "2025.02.02"}
no.cjohansen/replicant {:mvn/version "2025.03.27"}
re-frame/re-frame {:mvn/version "1.3.0"} re-frame/re-frame {:mvn/version "1.3.0"}
cljsjs/react {:mvn/version "18.2.0-1"} cljsjs/react {:mvn/version "18.2.0-1"}
cljsjs/react-dom {:mvn/version "18.2.0-1"} cljsjs/react-dom {:mvn/version "18.2.0-1"}
@ -22,7 +22,7 @@
io.github.babashka/sci.configs io.github.babashka/sci.configs
#_{:local/root "/Users/borkdude/dev/sci.configs"} #_{:local/root "/Users/borkdude/dev/sci.configs"}
{:git/url "https://github.com/babashka/sci.configs" {:git/url "https://github.com/babashka/sci.configs"
:git/sha "8253c69a537bcc82e8ff122e5f905fe9d1e303f0"}} :git/sha "a96625e839d7b8a8910eaa1cc9ccf01bb9714458"}}
:aliases :aliases
{:dev {:dev
{:extra-paths ["dev"] {:extra-paths ["dev"]

View file

@ -1,15 +0,0 @@
(ns sci.configs.replicant.replicant-dom
(:require [replicant.dom :as rd]
[sci.core :as sci]))
(def rdns (sci/create-ns 'replicant.dom nil))
(def replicant-dom-namespace
{'render (sci/copy-var rd/render rdns)
'unmount (sci/copy-var rd/unmount rdns)
'set-dispatch! (sci/copy-var rd/set-dispatch! rdns)})
(def namespaces {'replicant.dom replicant-dom-namespace})
(def config {:namespaces namespaces})

View file

@ -1,8 +1,8 @@
(ns scittle.replicant (ns scittle.replicant
(:require (:require
[sci.configs.replicant.replicant-dom :refer [replicant-dom-namespace]] [sci.configs.cjohansen.replicant :refer [config]]
[scittle.core :as scittle])) [scittle.core :as scittle]))
(scittle/register-plugin! (scittle/register-plugin!
::replicant ::replicant
{:namespaces {'replicant.dom replicant-dom-namespace}}) config)