Skip to content

Add library support#146

Open
jxnxsdev wants to merge 2 commits intoInrixia:masterfrom
jxnxsdev:master
Open

Add library support#146
jxnxsdev wants to merge 2 commits intoInrixia:masterfrom
jxnxsdev:master

Conversation

@jxnxsdev
Copy link
Contributor

@jxnxsdev jxnxsdev commented Mar 1, 2026

The Plugin Manager now supports depending on librarys. Library plugins get automatically installed when a plugin depends on them.

Plugins have the (optional) field added to the package.json:

luna: { type: "plugin OR library", dependencies: [ { "name":"" // package name of the library plugin "storeUrl":"" // url of the store the plugin can be downloaded from, in case the store is not present already "devStoreUrl":"" // Store the library plugin is downloaded when from loading a plugin via the localhost dev store. } ] }

Library plugins only need the type field. Normal plugins need the rest. If a plugin does not need to depend on others, adding the luna field is optional.
If a package name is added under the luna dependencies, the compiler will now automatically treat it as external and won't compile it into the plugin.

jxnxsdev added 2 commits March 1, 2026 18:58
The Plugin Manager now supports depending on librarys. Library plugins get automatically installed when a plugin depends on them.

Plugins now have the (optional) field added to the package.json:

luna: {
type: "plugin OR library",
dependencies: [
{
"name":"" // package name of the library plugin
"storeUrl":"" // url of the store the plugin can be downloaded from, in case the store is not present already
"devStoreUrl":"" // Store the library plugin is downloaded when from loading a plugin via the localhost dev store.
]
}

Library plugins only need the type field. Normal plugins need the rest. If a plugin does not need to depend on others, adding the luna field is optional.

If a package name is added under the luna dependencies, the compiler will now automatically treat it as external and won't compile it into the plugin.
@Inrixia
Copy link
Owner

Inrixia commented Mar 1, 2026

This looks pretty thick and implements a major feature so it may take a bit of time for me to review 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants