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:

  1. Copy the plugin directory into plugins/ (e.g.: plugins/).
  2. Run updatePlugins.js script:
    1. To run updatePlugins.js move into the plugins/ directory.
    2. Make sure to have nodejs installed and run the node updatePlugins.js command within the directory.
    3. This will generate a new plugins.json file.
  3. Refresh the application.

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