Backstage is a single-page application composed of a set of plugins. This folder holds numerous plugins that are managed by this project.
For more information about the plugin ecosystem, see the documentation here:
You can also see the Plugin Marketplace for other open source plugins you can add to your Backstage instance.
If you start developing a plugin that you aim to release as open source, we suggest that you create a new Issue in this repository as well as a new Issue in the upstream. This helps both the upstream Backstage and Janus-IDP communities know what plugins are in development.
You can also use this process if you have an idea for a good plugin but you hope that someone else will pick up the work.
Run the following command to create a new plugin and follow the instructions:
yarn new
Before developing your plugins please read the Releasing packages section of this readme. It will help you understand versioning, commit messages and publishing process.
Backstage's support for standalone plugin development is very limited (especially for backend plugins), therefore we include a minimal test instance within this repository.
- Install the plugin via
yarn workspace [app|backend] add @janus-idp/<PLUGIN_NAME>@*
(@*
at the end ensures the package is always linked to the local package in theplugins
folder) - Run
yarn start:backstage
In case your plugin supports standalone mode, you can use yarn start --filter=<PLUGIN_NAME>
command in your plugin directory directly and you don't have to install the plugin as mentioned above.
You can augment the configuration for a plugin by running yarn start --config <CONFIG_FILE>
.
Backstage plugins in the Janus-IDP community aim for high release velocity for the time being. This allows us to rapidly prototype, develop and test plugins in the wild. Current release schedule reflects this approach, therefore a new release is triggered on each push to the main branch. Only packages which are affected by the recent changes are released.
private: true
in thepackage.json
ensures the package is released to Git/GitHub only. The package is not released to NPM.- You can use the
publishConfig
key in thepackage.json
to influence NPM registry settings.
To make your package eligible for release automation and publicly available in NPM registry, please make sure your package.json
contains following:
{
- "private": true,
...
+ "publishConfig": {
+ "access": "public"
+ }
}
We use semantic-release (together with multi-semantic-release).
Please read following guidelines to learn, how to format your commit messages:
Commit message | Release type |
---|---|
fix(pencil): stop graphite breaking when too much pressure applied |
Fix Release (vX.Y.⬆️ ) |
feat(pencil): add 'graphiteWidth' option |
Feature Release (vX.⬆️.0 ) |
perf(pencil): remove graphiteWidth option |
Breaking Release (v⬆️.0.0 ) (Note that the BREAKING CHANGE: token must be in the footer of the commit) |
Commit messages are used to populate a CHANGELOG.md
file for each individual package (if the commit is relevant for that particular package folder).
Semantic Release does following:
- Analyzes commits for each package to determine if release is necessary (if there are changes in the package)
- Generates
CHANGELOG.md
for each package to be released - Bumps version number in the
package.json
for each package - Creates a git tag
<package-name>@<version>
pointing to the new release - Creates a new GitHub release for each package
- Publishes the new version to the NPM registry
-
Error:
ERROR run failed: error preparing engine: Invalid persistent task configuration: You have <x - number> persistent tasks but `turbo` is configured for concurrency of 10. Set --concurrency to at least <x - number>
Solution: You need to run
yarn start
with a filter. e.g.yarn start --filter=<PLUGIN_NAME>