pink-gorilla / goldly

sci-cljs-kernel for reval
24 stars 1 forks source link

Extension sci-configs #48

Closed awb99 closed 3 months ago

awb99 commented 9 months ago

With sci-configs style extensions we can avoid generating goldly-compile-dynamic namespace cljs file.

Add a :sci-configs key that will just accumulate namespaces so that we can forget about the autogenerated file.

awb99 commented 9 months ago

this is the old syntax: :cljs-ns-bindings {'promesa.core sci.configs.funcool.promesa/promesa-namespace}

this is the new syntax: :sci-cljs-ns-bindings {'promesa.core sci.configs.funcool.promesa/promesa-namespace}

For the extensions it is very easy to move over; just do 2 things:

  1. create a sci-ns variable.
  2. change key :cljs-ns-bindings to :sci-cljs-ns-bindings

It would work 100% identical in all matters; just the new approahc will not generate goldly-bindings-generated.cljs file.

It also makes the :src key obsolete.