Plugins are located in the plugins directory inside the root of the pCon.basket.
pCon.basket root
├─ ...
├─ plugins
│ ├─ plugin_1
│ │ ├─ plugin.json
│ │ ├─ plugin.js
│ │ └─ ... additional files and folders
│ ├─ plugin_2
│ │ ├─ plugin.json
│ │ ├─ plugin.js
│ │ └─ ... additional files and folders
│ ├─ plugins.json
│ └─ updatePlugins.js
└─ ...
The plugins.json file contained within the plugins directory is a combined manifest of all the registered plugins. This file is used to initialize installed plugins when the application loads. The updatePlugins.js script update this file. Plugins which are not defined in the plugins.json file are ignored when the application is loaded.
Intalling a plugin manually can be done with the following steps:
node updatePlugins.js
command within the directory.The example plugin demonstrates how this can be automated. The grunt
build task of the plugin is doing all the necessary steps.
Generated using TypeDoc