diff --git a/CHANGELOG.md b/CHANGELOG.md index 536da3b..9a165c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ +- [#102](https://github.com/babashka/scittle/issues/102): add `applied-science/js-interop` plugin. + ## v0.6.22 (2024-12-19) - [#99](https://github.com/babashka/babashka/issues/99): make `js/import` work diff --git a/deps.edn b/deps.edn index b21df7f..c21aef5 100644 --- a/deps.edn +++ b/deps.edn @@ -11,6 +11,7 @@ cljsjs/react-dom {:mvn/version "18.2.0-1"} cljsjs/react-dom-server {:mvn/version "18.2.0-1"} cljs-ajax/cljs-ajax {:mvn/version "0.8.4"} + applied-science/js-interop {:mvn/version "0.4.2"} funcool/promesa {:mvn/version "11.0.678"} io.github.babashka/sci.nrepl #_{:local/root "../sci.nrepl"} diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 47e5deb..73529a6 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -18,6 +18,8 @@ :depends-on #{:scittle}} :scittle.promesa {:entries [scittle.promesa] :depends-on #{:scittle}} + :scittle.js-interop {:entries [scittle.js-interop] + :depends-on #{:scittle}} :scittle.pprint {:entries [scittle.pprint] :depends-on #{:scittle}} :scittle.reagent {:entries [scittle.reagent] diff --git a/src/scittle/js_interop.cljs b/src/scittle/js_interop.cljs new file mode 100644 index 0000000..603b565 --- /dev/null +++ b/src/scittle/js_interop.cljs @@ -0,0 +1,8 @@ +(ns scittle.js-interop + (:require + [sci.configs.applied-science.js-interop :as j] + [scittle.core :as scittle])) + +(scittle/register-plugin! + ::js-interop + j/config)