Here is how you can add a new plugin in CRM 2.0
Go to the plugin directory:
The current plugin directory is E:\Faheem\crm-node-plugins
, but it could be changed in the future. Use the following commands to switch to that directory:
E:
cd E:\Faheem\crm-node-plugins
Create the plugin:
Use the command and pass your plugin name to create the plugin, make sure to add cl_
prefix.:
create-cl-plugin cl_your_plugin_name
You can also pass a template flag to change the type of plugin:
create-cl-plugin cl_your_plugin_name --template plugin
Here are the available templates:
plugin:
Plugin is the default template for all new plugins. It contains the basic functionality to build an Express app, test it and deploy it.
util:
Util contains boilerplate code to generate a core plugin. It allows you to create your own folder structure and use it in other plugins. It only comes with a test directory and mocha preinstalled.