From e2979fd3940cd2327938e7ca8a112c044c2510c5 Mon Sep 17 00:00:00 2001 From: Jeroen van Dijk Date: Mon, 14 Jul 2025 15:48:26 +0300 Subject: [PATCH] Add dataspex --- plugins/dataspex/deps.edn | 4 ++++ plugins/dataspex/src/scittle/dataspex.cljs | 9 +++++++++ plugins/dataspex/src/scittle_plugin.edn | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 plugins/dataspex/deps.edn create mode 100644 plugins/dataspex/src/scittle/dataspex.cljs create mode 100644 plugins/dataspex/src/scittle_plugin.edn diff --git a/plugins/dataspex/deps.edn b/plugins/dataspex/deps.edn new file mode 100644 index 0000000..ff0ba12 --- /dev/null +++ b/plugins/dataspex/deps.edn @@ -0,0 +1,4 @@ +{:deps + {no.cjohansen/dataspex {:git/url "https://github.com/cjohansen/dataspex" + :git/sha "02112200651c2bd932907bb69fba1ff50b881741"} + io.github.babashka/sci.configs {:git/sha "aa84a1b4f1fe45735e5b748769309fc842f737c1"}}} diff --git a/plugins/dataspex/src/scittle/dataspex.cljs b/plugins/dataspex/src/scittle/dataspex.cljs new file mode 100644 index 0000000..66b3908 --- /dev/null +++ b/plugins/dataspex/src/scittle/dataspex.cljs @@ -0,0 +1,9 @@ +(ns scittle.dataspex + {:no-doc true} + (:require [sci.configs.cjohansen.dataspex :refer [config]] + [scittle.core :as scittle])) + +(defn init [] + (scittle/register-plugin! + ::dataspex + config)) diff --git a/plugins/dataspex/src/scittle_plugin.edn b/plugins/dataspex/src/scittle_plugin.edn new file mode 100644 index 0000000..4e1c64e --- /dev/null +++ b/plugins/dataspex/src/scittle_plugin.edn @@ -0,0 +1,8 @@ +[{:name scittle/dataspex + :namespaces [dataspex.core] + :js "./scittle.dataspex.js" + :shadow-config + {:modules + {:scittle.dataspex {:init-fn scittle.dataspex/init + :depends-on #{:scittle} + :entries [dataspex.core]}}}}]