Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage-community/plugin-xcmetrics': minor
---

Added support for the new frontend system via a `/alpha` export.
2 changes: 1 addition & 1 deletion workspaces/xcmetrics/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugins:
- checksum: 0cfdc882d3c1395592aa6d4690958e70ebbc3a8ee1d888d523dc9e3c74796de26f744c37df66a69212280634f422a88074ba625dce0f7886fbdf2a904a0c38a2
path: .yarn/plugins/@yarnpkg/plugin-backstage.cjs
spec: 'https://versions.backstage.io/v1/releases/1.51.0/yarn-plugin'
spec: 'https://versions.backstage.io/v1/releases/1.51.2/yarn-plugin'
15 changes: 15 additions & 0 deletions workspaces/xcmetrics/app-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
app:
title: XCMetrics Example App
baseUrl: http://localhost:3000

organization:
name: XCMetrics Example

backend:
baseUrl: http://localhost:7007
listen:
port: 7007

proxy:
'/xcmetrics':
target: http://127.0.0.1:8080/v1
2 changes: 1 addition & 1 deletion workspaces/xcmetrics/backstage.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.51.0"
"version": "1.51.2"
}
1 change: 1 addition & 0 deletions workspaces/xcmetrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"node": "22 || 24"
},
"scripts": {
"dev": "yarn workspaces foreach -A --include @backstage-community/plugin-xcmetrics --parallel -v -i run start",
"start": "backstage-cli repo start",
"tsc": "tsc",
"tsc:full": "tsc --skipLibCheck false --incremental false",
Expand Down
23 changes: 23 additions & 0 deletions workspaces/xcmetrics/plugins/xcmetrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,26 @@ proxy:
```

Start Backstage and navigate to `/xcmetrics` to view your build metrics!

## New Frontend System

If you are using Backstage feature discovery, the plugin can be discovered automatically. Otherwise, you can register the alpha entry manually in your app:

```tsx
import { createApp } from '@backstage/app-defaults';
import xcmetricsPlugin from '@backstage-community/plugin-xcmetrics/alpha';

const app = createApp({
features: [
// ...other features
xcmetricsPlugin,
],
});
```

This plugin provides the following new frontend system extensions:

- A page extension for the XCMetrics dashboard
- An API extension for `xcmetricsApiRef`

Use `@backstage-community/plugin-xcmetrics/alpha` to enable the plugin through the new frontend system.
Loading
Loading