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

Load plugins in earlier phase. #60

Open
mengchen2 opened this issue Mar 6, 2019 · 2 comments
Open

Load plugins in earlier phase. #60

mengchen2 opened this issue Mar 6, 2019 · 2 comments

Comments

@mengchen2
Copy link

We plan to build a Data Provider plugin for nemo.
"Data-Provider": {
"module": "Data-Provider",
"register": true,
"arguments": [
"path:...", [ ""]] }

But the problem now is that, nemo read all data from config.json file and then load plugin. The data generated by the data provider plugin will not be loaded by nemo anymore...

@mengchen2
Copy link
Author

A solution is ready for this. But somehow I could not create a PR. So post the PR compare link here
https://github.com/krakenjs/nemo/compare/krakenjs:master...samonkoba:nextGenFilter?expand=1

@grawk
Copy link
Member

grawk commented Mar 11, 2019

Is it possible to generate the data in an earlier phase (using a custom script you maintain) and then calling nemo?

E.g.

$ node myGenerateData && npm run nemo

Where your myGenerateData generates a static JSON data file, and your nemo config can read it

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

No branches or pull requests

2 participants