Example: Frontend Plugin
A frontend plugin can de bootstrapped with the command below:
yarn new --select frontend-plugin --option pluginId=my-front-plugin
This creates a basic React-based plugin with a page/component and plugin exports.
Wire the plugin route into the app UI so it becomes accessible:
-
Open
packages/app/src/App.tsx
. -
Import your plugin page/component (exact names depend on the scaffold output):
import { MyPluginPage } from 'my-plugin';
-
Add a route under the appropriate
Route
group:<Route path="/my-plugin" element={<MyPluginPage />} />
-
Optionally add a link (e.g., to the sidebar/nav) so users can discover it.
Restart the dev server if needed and visit /my-plugin
to see your page.