1.0.1 • Published 5 years ago
@pipcook/create-pipcook-plugin v1.0.1
@pipcook/create-pipcook-plugin
Create plugin for Pipcook in only one command via npm-init.
Getting started
The are many ways to create a plugin for Pipcook.
# via NPM
$ npm init @pipcook/pipcook-plugin --category data-collect my-plugin
# via Pipcook
$ pipcook plugin create my-plugin --category data-collectTo create a TypeScript(default) plugin:
$ npm init @pipcook/pipcook-plugin my-pluginTo create a plugin with its category:
$ npm init @pipcook/pipcook-plugin --category data-collect my-pluginSupported categories of plugin are:
data-collectdata-accessdata-processmodel-definemodel-trainmodel-evaluate
To create a Python plugin:
$ npm init @pipcook/create-pipcook-plugin --pythonHow to write a template for new plugin
- create a directory at ./templates, and name in
v1-default-${plugin-category}. - create an
index.tsunder created template directory, and write the template there. - submit a Pull Request to this repository.
To debug the new plugin template, we could use npx command:
$ npm link
$ npx @pipcook/create-pipcook-plugin foobar --category new-categoryLicense
MIT.