Improve todo-list clone script

Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
This commit is contained in:
Vincenzo Scamporlino
2022-04-26 11:49:02 +02:00
committed by Joon Park
parent 7f484f4960
commit d1912729c9
+9 -5
View File
@@ -21,15 +21,19 @@ The source code is available here:
1. Copy-paste the three folders into the plugins folder of your backstage application repository or run the following script from the root of your backstage application:
```bash
$ curl https://codeload.github.com/backstage/backstage/zip/refs/heads/master | \
tar -C plugins --strip-components=1 -xv \
backstage-master/plugins/example-todo-list \
backstage-master/plugins/example-todo-list-backend \
backstage-master/plugins/example-todo-list-common
$ cd $(mktemp -d)
git clone --depth 1 --quiet --no-checkout --filter=blob:none https://github.com/backstage/backstage.git .
git checkout master -- plugins/example-todo-list/
git checkout master -- plugins/example-todo-list-backend/
git checkout master -- plugins/example-todo-list-common/
cp -R plugins/* $OLDPWD/plugins
cd -
```
The `plugins` directory of your project should now include `todo-list`, `todo-list-backend`, and `todo-list-common`.
**Important**: if you are on **Windows**, make sure you have WSL and git installed on your machine before executing the script above.
2. Add these packages as dependencies for your Backstage app:
```