Skip to content

Commit

Permalink
Add ordered dep and 2 more datascript fns
Browse files Browse the repository at this point in the history
  • Loading branch information
logseq-cldwalker committed Apr 30, 2024
1 parent 5117a37 commit 8274d8b
Show file tree
Hide file tree
Showing 32 changed files with 4,862 additions and 4,748 deletions.
7 changes: 4 additions & 3 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
{:mvn/version "0.8.41"}
datascript/deps
{:git/url "https://github.com/logseq/nbb-features"
:git/sha "390ee86e8f6feacb2ccd94165a434ccd3db0c3af"
:git/sha "1f925bf4f2263525687ef83f0d998a9c09ad603b"
:deps/root "features/datascript"}
#_{:local/root "../nbb-features/features/datascript"}
datascript-transit/deps
{:git/url "https://github.com/logseq/nbb-features"
:git/sha "390ee86e8f6feacb2ccd94165a434ccd3db0c3af"
:git/sha "1f925bf4f2263525687ef83f0d998a9c09ad603b"
:deps/root "features/datascript-transit"}
#_{:local/root "../nbb-features/features/datascript-transit"}
cljs-time/deps {:local/root "features/cljs-time"}}
cljs-time/deps {:local/root "features/cljs-time"}
ordered/deps {:local/root "features/ordered"}}

:tasks
{:requires ([babashka.fs :as fs]
Expand Down
2 changes: 2 additions & 0 deletions features/ordered/deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:deps
{org.flatland/ordered {:mvn/version "1.15.11"}}}
13 changes: 13 additions & 0 deletions features/ordered/src/nbb/impl/ordered.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(ns nbb.impl.ordered
{:no-doc true}
(:require [flatland.ordered.map]
[nbb.core :as nbb]
[sci.core :as sci]))

(def map-ns (sci/create-ns 'flatland.ordered.map nil))
(def map-namespace (sci/copy-ns flatland.ordered.map map-ns))

(def config {:namespaces {'flatland.ordered.map map-namespace}})

(defn init []
(nbb/register-plugin! ::ordered config))
7 changes: 7 additions & 0 deletions features/ordered/src/nbb_features.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[{:name logseq/ordered
:namespaces [flatland.ordered.map]
:js "./nbb_ordered.js"
:shadow-config
{:modules
{:nbb_ordered {:init-fn nbb.impl.ordered/init
:depends-on #{:nbb_core}}}}}]
32 changes: 16 additions & 16 deletions lib/nbb_api.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions lib/nbb_bundler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8274d8b

Please sign in to comment.