From 0481bfb7a484d367bdc094e800e6133d51f8f8c0 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 5 Mar 2021 16:10:58 -0500 Subject: [PATCH] Add retrofit instructions Signed-off-by: Adam Harvey --- .changeset/few-suns-cheer.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.changeset/few-suns-cheer.md b/.changeset/few-suns-cheer.md index f19c6866dd..d6587c130a 100644 --- a/.changeset/few-suns-cheer.md +++ b/.changeset/few-suns-cheer.md @@ -3,3 +3,26 @@ --- Adds "yarn dev" command to simplify local development. + +To add the command to an existing application, first add it to the `scripts` +section of your monorepo root `package.json` like so: + +```diff + "scripts": { ++ "dev": "concurrently \"yarn start\" \"yarn start-backend\"", + "start": "yarn workspace app start", + "start-backend": "yarn workspace backend start", +``` + +And then add the `concurrently` package to your monorepo, like so: + +```sh +yarn add concurrently@6.0.0 --dev -W +``` + +Notes: + +- This needs to be done to the monorepo root, not your frontend or backend package. +- The `--dev -W` will add it only to `devDependencies`, and force it to the monorepo main root. + +You can then run `yarn dev` which will start both the Backstage frontend and backend in a single window.