@rakesh_gali/plugin-hello-plugin
v0.0.1
Published
A minimal frontend Backstage plugin that displays a `HelloCard` InfoCard.
Downloads
9
Readme
Hello Plugin
A minimal frontend Backstage plugin that displays a HelloCard InfoCard.
How to use:
- Add the plugin package to your
packages/apppackage.jsondependenciesor use a workspace reference. - Import and register the plugin in your app's plugin registration and routes.
Example import in the app:
import { plugin as helloPlugin } from '@rakesh_gali/plugin-hello-plugin';If your repository uses Yarn or PNPM workspaces, add a workspace reference from packages/app to the plugin package (or use a direct relative import as in this repository). Then rebuild the app.
Example run (from repo root):
# install deps (yarn or pnpm depending on repo)
yarn install
# build plugin
cd plugins/hello-plugin && yarn build
# start app
cd ../../packages/app && yarn startPublishing to npm
Before publishing, update package.json fields such as repository.url and version.
If you want to publish to the public npm registry under an organization scope like @backstage, ensure your npm account has permission to publish under that scope. If you don't, choose a different scope (your username or organization) or publish unscoped.
Example publish steps:
# from the plugin folder
cd plugins/hello-plugin
# ensure build artifacts are present
npm run build
# login to npm (if not already)
npm login
# publish (public access)
npm publish --access publicIf you plan to publish under @backstage, consult the npm organization owners to add you as a maintainer. Alternatively, change the name field in package.json to @your-scope/plugin-hello-plugin or plugin-hello-plugin.
