Add retrofit instructions

Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Adam Harvey
2021-03-05 16:10:58 -05:00
parent b03fba0dc2
commit 0481bfb7a4
+23
View File
@@ -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.