I'm trying to build a working example using a custom component using noflo. Could somebody please explain how I should reference my component from within my .fbp file. The examples in the docs all seem to relate to npm based components.
Thanks
I'm trying to build a working example using a custom component using noflo. Could somebody please explain how I should reference my component from within my .fbp file. The examples in the docs all seem to relate to npm based components.
Thanks
假设您有components/ComponentName.coffee
(或 .js),并且此文件注册package.json
为
noflo: {
components: {
"ComponentName": "components/ComponentName.coffee"
}
}
那么您应该可以在 .fbp 文件中将其引用为
'hello' -> IN node(ComponentName)
或者
'hello' -> IN node(packagename/ComponentName)
packagename
package.json 中设置的项目名称在哪里。
package.json 中的声明可以使用grunt-noflo-manifest
.
noflo-browser 也是一样,只是用component.json
代替package.json