Hi,
I have no idea how components are to be loaded and to be used with noflo. Obviously it is not as simple as importing the '.js' file. Please guide me to do it in the right way.
NoFlo uses the "fbp-manifest" tool to discover components available in the system. For components in your project, they're discovered from the "components/" folder in your project root:
By default the filename is used as the component name, so "components/Foo.js" becomes "projectname/Foo".
If you have .json or .fbp files in your "graphs/" folder, they'll also become available as components.
I'll update the component docs to mention this as well.
import calcComp from '../../calc-component';
import genComp from '../../generator-component';
Once your components are in the right paths, requiring them manually won't be necessary since NoFlo already knows how to load them. Just add a graph node using the correct component name.
If you want to use a different filesystem structure for your project, then one option is using the "custom component loaders" feature. But this is usually only needed for components generated from information available at runtime, like we do in libraries like noflo-polymer (where we have a way of making WebComponents available as NoFlo components).
/Henri