File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # Bundles @backstage-community/plugin-announcements (frontend + backend) as dynamic plugins for the Backstage demo app.
3+ # Expects the community-plugins repo cloned at ../backstage-community-plugins
4+ set -euo pipefail
5+
6+ OUTPUT_DIR=" $( pwd) /dynamic-plugins-root"
7+ BACKSTAGE_CLI=" $( pwd) /node_modules/.bin/backstage-cli"
8+ WORKSPACE_DIR=" ../backstage-community-plugins/workspaces/announcements"
9+
10+ rm -rf " $OUTPUT_DIR "
11+ mkdir -p " $OUTPUT_DIR "
12+
13+ # Backend: plugin-announcements-backend
14+ echo " ==> Bundling @backstage-community/plugin-announcements-backend…"
15+ (cd " $WORKSPACE_DIR /plugins/announcements-backend" && \
16+ " $BACKSTAGE_CLI " package bundle --output-destination " $OUTPUT_DIR " )
17+
18+ # Frontend: plugin-announcements
19+ echo " ==> Building @backstage-community/plugin-announcements…"
20+ (cd " $WORKSPACE_DIR /plugins/announcements" && \
21+ " $BACKSTAGE_CLI " package build --role frontend-dynamic-container)
22+
23+ FRONTEND_OUT_DIR=" $OUTPUT_DIR /backstage-community-plugin-announcements"
24+ mkdir -p " $FRONTEND_OUT_DIR "
25+ cp -R " $WORKSPACE_DIR /plugins/announcements/dist" " $FRONTEND_OUT_DIR /"
26+ cp " $WORKSPACE_DIR /plugins/announcements/package.json" " $FRONTEND_OUT_DIR /"
27+
28+ # Summary
29+ echo " "
30+ echo " ==> Dynamic plugins bundled successfully at: $OUTPUT_DIR "
31+ ls -1 " $OUTPUT_DIR "
Original file line number Diff line number Diff line change 5151 ]
5252 },
5353 "devDependencies" : {
54- "@backstage/cli" : " ^0.35.4 " ,
54+ "@backstage/cli" : " ^0.0.0-nightly-20260317031259 " ,
5555 "@backstage/e2e-test-utils" : " ^0.1.2" ,
5656 "@jest/environment-jsdom-abstract" : " ^30.0.0" ,
5757 "@playwright/test" : " ^1.32.3" ,
Original file line number Diff line number Diff line change 1717 },
1818 "dependencies" : {
1919 "@backstage/backend-defaults" : " ^0.15.2" ,
20- "@backstage/backend-dynamic-feature-service" : " ^0.7.9 " ,
20+ "@backstage/backend-dynamic-feature-service" : " ^0.0.0-nightly-20260317031259 " ,
2121 "@backstage/config" : " ^1.3.6" ,
2222 "@backstage/plugin-app-backend" : " ^0.5.11" ,
2323 "@backstage/plugin-auth-backend" : " ^0.27.0" ,
You can’t perform that action at this time.
0 commit comments