scittle

2024-10-20T07:44:42.164629Z

We've been playing around with the emmy viewer plugin here at https://github.com/reedho/scittle/ for quite some time. If we publish the plugin js output (e.g. in this case is scittle.emmy-viewers.js), it must use scittle.js from the same build or there is build config so that we can use official scittle.js while using our plugin .js files?

borkdude 2024-10-20T07:56:25.756939Z

you must use the scittle.js from your own build, due to how Google Closure optimizations work

2024-10-20T08:12:23.496699Z

I believe the plugin js size not affect main scittle.js much, is it good idea to have this plugin bundled from scittle build. @daslu probably want to do this? or do you have other suggestion?

Daniel Slutsky 2024-10-20T09:21:11.557139Z

From my perspective, of course it would be great to bundle it with the usual scittle build. This way, users will not need to bother about build anything, but simply use it in their HTML files.

borkdude 2024-10-20T09:26:42.687219Z

This has come up before. The hoplon folks wanted to do the same, but I'd rather not maintain the whole clojure-verse, this is why I wrote the plugin system. Issues with your project will always first reach me if it's part of the standard bundle, it's just how it is I'm fine with your SCI config to live in https://github.com/babashka/sci.configs/tree/main/src/sci/configs but I'm not prepared to deal with "production" issues of your plugin

borkdude 2024-10-20T09:29:33.501329Z

Also you won't be limited by me including more libraries and tools to your liking

2024-10-20T09:42:50.218789Z

I can see the bright side. I was also initially looking for some suggestion on how the naming should be implemented, if, for example we want to distribute via jsdelivr too.

borkdude 2024-10-20T09:43:47.475109Z

https://www.npmjs.com/package/scittle-hoplon

borkdude 2024-10-20T09:43:59.923459Z

or @your-org/scittle-whatever

2024-10-20T09:44:43.792789Z

I see, i will take a look. Thank you so much.

Daniel Slutsky 2024-10-20T10:29:46.752709Z

Makes sense, many thanks