Rekit Docs
  • Getting Started
  • Overview
  • Application Types
  • Command Line Interface
  • Element
  • Project Explorer
  • Diagramming
  • Tabs Bar
  • Code Editor
  • Bottom Drawer
  • Move/Rename
  • Rekit Development
    • Create a Rekit Plugin
      • Application Plugin
    • Get Started
    • Extension Point
    • Provide Project Data
    • Define a New Type of Element
      • Manage Element
      • Core Dialog
      • Form in the Dialog
    • Customize Menus
    • Plugin Architecture
    • Plugin Development
    • Hooks
    • Form Builder
    • API reference
      • Overview
      • Extend layouts
  • Application Types
    • Rekit React
      • Overview
      • Element Types
      • Customize Templates
      • Redux Management
      • React Router
      • Styling
      • Build
      • Testing
    • Create React App
    • Rekit Plugin
    • VueJS
    • AngularJS
Powered by GitBook
On this page
  • Create a Plugin Project
  • Set Test Project Root for the Plugin to Manage
  • Test Plugin in Development Mode
  • Test Plugin in Production Mode
  • Test Plugin in Command Line Mode
  • Deploy Plugin to Local Registry
  • Publish Plugin

Was this helpful?

  1. Rekit Development

Plugin Development

Setup environment for plugin development.

PreviousPlugin ArchitectureNextHooks

Last updated 6 years ago

Was this helpful?

Create a Plugin Project

Set Test Project Root for the Plugin to Manage

Test Plugin in Development Mode

Test Plugin in Production Mode

Test Plugin in Command Line Mode

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:

> export REKIT_PLUGIN_DIR=/my/workspace/plugin-project-root
> rekit add page my-page

If not set the environment variable, Rekit will not load your plugin and you will see errors like below:

Deploy Plugin to Local Registry

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 .

Publish Plugin

To distribute you plugin, you need to publish to npm registry (either public or private).

Deploy Plugin Using Rekit Studio