Skip to content

implement a plugin framework #1448

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

mmomtchev
Copy link
Contributor

here is my first draft

A plugin has to export:

export async function init();
export function parse(file, config, api);
export function shallow(file);

I have included a small mock_plugin.js for unit testing

@mmomtchev
Copy link
Contributor Author

#1441

@mmomtchev
Copy link
Contributor Author

You can also take a look at a working plugin:
https://github.com/mmomtchev/documentation-polyglot

@mmomtchev
Copy link
Contributor Author

@anthony-redFox w8, I just found a major problem - expandInputs happens before globbing so there is no way to have some files use shallow dependencies and others - full tracking
Unless you have an idea?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant