Skip to content

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