Skip to content

Conventions for packaging plugins #2099

Answered by agoose77
JimMadge asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @JimMadge

We don't have a strong standard on this. I created an example for a JS plugin that uses esbuild to bundle the plugin and its dependencies into a single file, and released on GH releases: https://github.com/myst-examples/js-plugin
This plugin can be consumed by URL from its release endpoint:

It's pretty simple to adapt that to TypeScript.

Curvenote have some examples of compiling TypeScript plugins, which are published to NPM.

I'd be tempted not to push for NPM publishing up-front, because it's more to handle (tokens, etc) than just pushing a release artifact.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@JimMadge
Comment options

Answer selected by JimMadge
Comment options

You must be logged in to vote
1 reply
@agoose77
Comment options

Comment options

You must be logged in to vote
1 reply
@JimMadge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants