Plugin Development
Setup environment for plugin development.
Last updated
Was this helpful?
Setup environment for plugin development.
Last updated
Was this helpful?
Within a terminal, go to the the project root the plugin is loaded with, you can use rekit
command line interface to manage project elements like add/move/remove. To let rekit
know your plugin, you need to set REKIT_PLUGIN_DIR
environment variable before running the rekit
command. Say that your plugin manages a new element type of page
, you can test it with below command:
If not set the environment variable, Rekit will not load your plugin and you will see errors like below:
To use the plugin locally in other Rekit Studio instance, you need to deploy built bundle into local Rekit plugin registry. It's very simple, just run npm script npm run deploy
, or you can run it with Rekit Studio's scripts manager:
To undeploy the plugin, just run the command npm run undeploy
.
To distribute you plugin, you need to publish to npm registry (either public or private).