Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 9, 2024
1 parent 199acbd commit 1bbf7ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions notebooks/sci_import_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
(:require [nextjournal.clerk :as clerk]
[clojure.core :as b]))

1

(clerk/with-viewer
{:render-fn
'(fn [_]
Expand All @@ -10,6 +12,8 @@
(js/import "https:/esm.sh/[email protected]/index.mjs")
(.then
(fn [lib]
(js/console.log :>1 lib.formatRelative)
(js/console.log :>2 lib.subDays)
(nextjournal.clerk/html
[:pre (lib.formatRelative (lib.subDays (js/Date.) 2) (js/Date.))]))))))}
nil)
4 changes: 3 additions & 1 deletion render/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
:deps {applied-science/js-interop {:mvn/version "0.3.3"}
binaryage/devtools {:mvn/version "1.0.3"}
cider/cider-nrepl {:mvn/version "0.28.3"}
org.babashka/sci {:git/url "https://github.com/babashka/sci"
;; WIP: somehow doing this doesn't pick up the local SCI...
org.babashka/sci {:local/root "../../babashka/sci"}
#_{:git/url "https://github.com/babashka/sci"
:git/sha "1e15f0f6a129ef7512351efc65f7475209d8cc4c"}
org.clojure/clojurescript {:mvn/version "1.11.132"}
io.github.babashka/sci.nrepl {:mvn/version "0.0.2"}
Expand Down

0 comments on commit 1bbf7ba

Please sign in to comment.