Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

implement a plugin framework #1448

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?

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.

1 participant