@micdavis1992/plugin-reshi-pic
v0.2.6
Published
A Nice Plugin where Reshi will give words of wisdom!
Downloads
25
Readme
ReshiPics Plugin for Backstage
Welcome to the reshi-pic plugin!
This plugin allows you to see my dog Reshi and he will give you some words of wisdom!
This plugin was created through the Backstage CLI
Development
Prerequisites
- Node.js
- Yarn
How to use
Install the plugin into your Backstage environment: yarn --cwd packages/app add @micdavis1992/plugin-reshi-pic
Import the card into your app for whichever page you want to use it on!
import { ReshiPic } from '@micdavis1992/plugin-reshi-pic'; Add the card to your page! const overviewContent = ( {entityWarningContent}
<ReshiPic />
<Grid item md={6} xs={12}>
<OpaMetadataAnalysisCard />
</Grid>
<Grid item md={4} xs={12}>
<EntityLinksCard />
</Grid>
<Grid item md={8} xs={12}>
<EntityHasSubcomponentsCard variant="gridItem" />
</Grid>Example
An example of what you can see!

Testing
This project uses Jest for testing. Run tests with:
yarn testTest Configuration
The project includes a Jest setup file (jest.setup.js) that provides polyfills for browser APIs that are missing in the Node.js environment, such as TextEncoder and TextDecoder.
Image Handling in Tests
Image imports in tests are handled by a custom file transformer that replaces image imports with a stub during testing.
Building
yarn buildContributing
Please ensure all tests pass before submitting a pull request.
Commit Guidelines
This project uses conventional commits to automate versioning and release notes. Your commit messages must follow this format:
<type>: <description>
[optional body]
[optional footer(s)]Where type must be one of:
feat: A new feature (minor version bump)fix: A bug fix (patch version bump)perf: A performance improvementdocs: Documentation only changeschore: Changes to the build process or auxiliary toolsstyle: Changes that do not affect the meaning of the coderefactor: Code changes that neither fix a bug nor add a featureci: Changes to CI configuration files and scriptstest: Adding missing tests or correcting existing testsrevert: Reverting a previous commitbreaking: Introduces a breaking change (major version bump)major: Explicit major version bumpminor: Explicit minor version bump
Examples:
feat: add new dog wisdom feature
fix: correct image display on mobile devices
docs: update installation instructionsCommit messages are automatically validated by a pre-commit hook. Invalid commit messages will be rejected.
Release Process
Releases are automated through GitHub Actions when changes are pushed to the main branch. The semantic-release tool analyzes commit messages to determine the next version number and automatically publishes to NPM.
License
This plugin is released under the Apache-2.0 license.
