add/remove components in noflo-ui version 0.18.0

。_饼干妹妹 提交于 2019-12-24 08:49:58

问题


I am running noflo-ui locally and trying to replace default set of components with my own set.
This is very similar to the question add/remove components in noflo-ui, but provided answers are not correct for current version of noflo-ui. At least there is no preview/component.json in the repository anymore.

I do not want to use github nor flowhub, due to internet connection limitation.

Is there a solution for current version of noflo-ui (which is 0.18.0) ?


回答1:


I assume you're talking about how to add/remove components available in the NoFlo browser runtime?

If you create a project you can add components for that project and they'll be registered with the runtime.

If you want to add components from existing NPM modules, the easiest way is by making a fork of the noflo-browser-app project template.

Then add whatever dependencies you want into package.json. You can then either build and host it locally, or use the integrated functionality to push host the generated runtime at GitHub Pages.

Once you have your custom runtime URL available, you can switch to that in Flowhub with the following steps.

First click the "switch runtime" button on top right corner:

Then go to runtime selector:

Choose "custom iframe URL"

Enter the URL to your custom runtime's HTML file:

Some more information on the browser builds in this blog post



来源:https://stackoverflow.com/questions/42992399/add-remove-components-in-noflo-ui-version-0-18-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!