plugins
This commit is contained in:
parent
1b9793733d
commit
826c3b8aed
2 changed files with 21 additions and 0 deletions
9
plugins/datascript/src/scittle/datascript.cljs
Normal file
9
plugins/datascript/src/scittle/datascript.cljs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(ns scittle.datascript
|
||||
{:no-doc true}
|
||||
(:require [sci.configs.tonsky.datascript :refer [config]]
|
||||
[scittle.core :as scittle]))
|
||||
|
||||
(defn init []
|
||||
(scittle/register-plugin!
|
||||
::datascript
|
||||
config))
|
||||
12
plugins/datascript/src/scittle_plugin.edn
Normal file
12
plugins/datascript/src/scittle_plugin.edn
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[{:name scittle/datascript
|
||||
:namespaces [datascript.core datascript.db]
|
||||
:js "./scittle.datascript.js"
|
||||
:shadow-config
|
||||
{:compiler-options {:externs ["datascript/externs.js"]}
|
||||
:modules
|
||||
{:scittle.datascript
|
||||
{:init-fn scittle.datascript/init
|
||||
;; From https://github.com/tonsky/datascript/issues/298#issuecomment-813790783
|
||||
:prepend "if (global) { global.datascript = datascript } else if (window) { window.datascript = datascript } else { var datascript = {}}"
|
||||
:depends-on #{:scittle}
|
||||
:entries [datascript.core]}}}}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue