From ec81500dcb432fbe91e5224892404cf492b0c51c Mon Sep 17 00:00:00 2001 From: Brandon Olivier Date: Wed, 23 Nov 2022 05:51:49 -0600 Subject: [PATCH] Add support for re-frame (#46) * Bump sci.configs for re-frame * Update changelog Co-authored-by: Michiel Borkent --- CHANGELOG.md | 3 +++ deps.edn | 3 +-- shadow-cljs.edn | 2 ++ src/scittle/re_frame.cljs | 8 ++++++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/scittle/re_frame.cljs diff --git a/CHANGELOG.md b/CHANGELOG.md index d898031..04487bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +- Add `scittle.re-frame` plugin. This gives access to the + [re-frame](https://github.com/day8/re-frame) library. + - Fix for [44](https://github.com/babashka/scittle/issues/44): Honoring `SCITTLE_NREPL_WEBSOCKET_PORT` in `scittle.nrepl` - Add all public vars of `cljs-ajax` `ajax.core` - Upgrade several built-in libraries diff --git a/deps.edn b/deps.edn index 3428f7a..ce94ba6 100644 --- a/deps.edn +++ b/deps.edn @@ -6,12 +6,12 @@ :git/sha "914919f248b7e3fc2ec59c435320145f588899d0"} #_{:local/root "../babashka/sci"} reagent/reagent {:mvn/version "1.1.1"} + re-frame/re-frame {:mvn/version "1.3.0"} cljsjs/react {:mvn/version "18.2.0-1"} 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"} funcool/promesa {:mvn/version "9.1.540"} - io.github.babashka/sci.nrepl #_{:local/root "../sci.nrepl"} {:git/url "https://github.com/babashka/sci.nrepl" @@ -19,7 +19,6 @@ io.github.babashka/sci.configs {:git/url "https://github.com/babashka/sci.configs" :git/sha "2717e545e5a61d4cccd85350b9ad6265afc9146c"}} - :aliases {:dev {:extra-paths ["dev"] diff --git a/shadow-cljs.edn b/shadow-cljs.edn index df491cd..29bd674 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.re-frame {:entries [scittle.re-frame] + :depends-on #{:scittle}} :scittle.pprint {:entries [scittle.pprint] :depends-on #{:scittle}} :scittle.reagent {:entries [scittle.reagent] diff --git a/src/scittle/re_frame.cljs b/src/scittle/re_frame.cljs new file mode 100644 index 0000000..39e219e --- /dev/null +++ b/src/scittle/re_frame.cljs @@ -0,0 +1,8 @@ +(ns scittle.re-frame + (:require + [sci.configs.re-frame.re-frame :as rf] + [scittle.core :as scittle])) + +(scittle/register-plugin! + ::re-frame + rf/config)