From 286d474675856eede79da8248ead87f322017370 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 15 Nov 2022 11:30:59 +0100 Subject: [PATCH] changesets: added changesets for the build script updates Signed-off-by: Patrik Oldsberg --- .changeset/grumpy-yaks-travel.md | 5 +++++ .changeset/tall-mugs-shake.md | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .changeset/grumpy-yaks-travel.md create mode 100644 .changeset/tall-mugs-shake.md diff --git a/.changeset/grumpy-yaks-travel.md b/.changeset/grumpy-yaks-travel.md new file mode 100644 index 0000000000..cb17d76d52 --- /dev/null +++ b/.changeset/grumpy-yaks-travel.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Minor update to the `index.html` template that updates the comment at the end to be more accurate. diff --git a/.changeset/tall-mugs-shake.md b/.changeset/tall-mugs-shake.md new file mode 100644 index 0000000000..e1f4104804 --- /dev/null +++ b/.changeset/tall-mugs-shake.md @@ -0,0 +1,21 @@ +--- +'@backstage/create-app': patch +--- + +The `build` script in the root `package.json` has been split into two separate scripts, `build:backend` and `build:all`. This is to more accurately reflect what is being built, to avoid confusion. + +If you want to build the project for a production deployment, you will want to use `build:backend`, as this builds both the frontend and backend package. If you are not using the `app-backend` plugin you will want to add your own `build:frontend` script, to which you can pass additional configuration parameters if needed. + +The `build:all` script is useful if you simply want to check that it is possible to build all packages in the project. This might be useful as a CI check, but is generally unnecessary. + +If you want to publish the packages in your repository you can add a `build:packages` script that calls `backstage-cli repo build`. This will skip the frontend and backend packages builds, as those are quite time consuming. + +To apply these changes to an existing project, make the following change to the root `package.json` file: + +```diff +- "build": "backstage-cli repo build --all", ++ "build:backend": "yarn workspace backend build", ++ "build:all": "backstage-cli repo build --all", +``` + +There are also a couple of places where documentation has been updated, see the [upgrade helper](https://backstage.github.io/upgrade-helper/?to=1.8.0) for a full list of changes.