[#10459] 📝 Update documentation to use yarn --cwd arg
Signed-off-by: LvffY <louberger@hotmail.fr>
This commit is contained in:
@@ -73,4 +73,4 @@ When using a custom pattern, the target is composed of five parts:
|
||||
|
||||
_Note:_ the path parameter follows the same rules as the search on Azure DevOps
|
||||
web interface. For more details visit the
|
||||
[official search documentation](https://docs.microsoft.com/en-us/azure/devops/project/search/get-started-search?view=azure-devops)
|
||||
[official search documentation](https://docs.microsoft.com/en-us/azure/devops/project/search/get-started-search?view=azure-devops).
|
||||
|
||||
@@ -102,8 +102,7 @@ Install in your app’s package folder (`<root>/packages/app`) with:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-<plugin-name>
|
||||
yarn add --cwd packages/app @backstage/plugin-<plugin-name>
|
||||
```
|
||||
|
||||
After that, you inject the plugin into the application where you want it to be exposed. Please read the documentation for the specific plugin you are installing for more information.
|
||||
|
||||
@@ -6,9 +6,9 @@ This package provides a default wiring of a Backstage app that avoids boilerplat
|
||||
|
||||
Install the package via Yarn:
|
||||
|
||||
```sh
|
||||
cd packages/app
|
||||
yarn add @backstage/app-defaults
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
yarn add --cwd packages/app @backstage/app-defaults
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
@@ -7,10 +7,9 @@ error handling and similar.
|
||||
|
||||
Add the library to your backend package:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/backend-common
|
||||
yarn add --cwd packages/backend @backstage/backend-common
|
||||
```
|
||||
|
||||
then make use of the handlers and logger as necessary:
|
||||
|
||||
@@ -6,10 +6,9 @@ Common distributed task management for Backstage backends.
|
||||
|
||||
Add the library to your backend package:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/backend-tasks
|
||||
yarn add --cwd packages/backend @backstage/backend-tasks
|
||||
```
|
||||
|
||||
then make use of its facilities as necessary:
|
||||
|
||||
@@ -6,9 +6,8 @@ This package provides the core API used by Backstage apps.
|
||||
|
||||
Install the package via Yarn:
|
||||
|
||||
```sh
|
||||
cd packages/app
|
||||
yarn add @backstage/core-app-api
|
||||
```bash
|
||||
yarn add --cwd packages/app @backstage/core-app-api
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
@@ -8,16 +8,14 @@ The Airbrake plugin provides connectivity between Backstage and Airbrake (https:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-airbrake
|
||||
yarn add --cwd packages/app @backstage/plugin-airbrake
|
||||
```
|
||||
|
||||
2. Install the Backend plugin:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-airbrake-backend
|
||||
yarn add --cwd packages/backend @backstage/plugin-airbrake-backend
|
||||
```
|
||||
|
||||
3. Add the `EntityAirbrakeContent` to `packages/app/src/components/catalog/EntityPage.tsx` for all the entity pages you want Airbrake to be in:
|
||||
|
||||
@@ -29,8 +29,7 @@ To link that a component provides or consumes an API, see the [`providesApis`](h
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-api-docs
|
||||
yarn add --cwd packages/app @backstage/plugin-api-docs
|
||||
```
|
||||
|
||||
2. Add the `ApiExplorerPage` extension to the app:
|
||||
|
||||
@@ -8,8 +8,7 @@ Add both this package and your local frontend app package as dependencies to you
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-app-backend app
|
||||
yarn add --cwd packages/backend @backstage/plugin-app-backend app
|
||||
```
|
||||
|
||||
By adding the app package as a dependency we ensure that it is built as part of the backend, and that it can be resolved at runtime.
|
||||
|
||||
@@ -68,8 +68,7 @@ To get the Azure Pipelines component working you'll need to do the following two
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-azure-devops
|
||||
yarn add --cwd packages/app @backstage/plugin-azure-devops
|
||||
```
|
||||
|
||||
2. Second we need to add the `EntityAzurePipelinesContent` extension to the entity page in your app. How to do this will depend on which annotation you are using in your entities:
|
||||
@@ -127,8 +126,7 @@ To get the Azure Repos component working you'll need to do the following two ste
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-azure-devops
|
||||
yarn add --cwd packages/app @backstage/plugin-azure-devops
|
||||
```
|
||||
|
||||
2. Second we need to add the `EntityAzurePullRequestsContent` extension to the entity page in your app:
|
||||
|
||||
@@ -8,8 +8,7 @@ Welcome to the Bazaar backend plugin!
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-bazaar-backend
|
||||
yarn add --cwd packages/backend @backstage/plugin-bazaar-backend
|
||||
```
|
||||
|
||||
## Adding the plugin to your `packages/backend`
|
||||
|
||||
@@ -16,10 +16,9 @@ The Bazaar allows engineers and teams to open up and announce their new and exci
|
||||
|
||||
First install the plugin into your app:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-bazaar
|
||||
yarn add --cwd packages/app @backstage/plugin-bazaar
|
||||
```
|
||||
|
||||
Modify your app routes in `packages/app/src/App.tsx` to include the `Bazaar` component exported from the plugin, for example:
|
||||
|
||||
@@ -7,10 +7,9 @@ Welcome to the Bitrise plugin!
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-bitrise
|
||||
yarn add --cwd packages/app @backstage/plugin-bitrise
|
||||
```
|
||||
|
||||
Bitrise Plugin exposes an entity tab component named `EntityBitriseContent`. You can include it in the
|
||||
|
||||
@@ -84,8 +84,7 @@ By default, all users are loaded. If you want to filter users based on their att
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-catalog-backend-module-msgraph
|
||||
yarn add --cwd packages/backend @backstage/plugin-catalog-backend-module-msgraph
|
||||
```
|
||||
|
||||
### Using the Entity Provider
|
||||
|
||||
@@ -27,8 +27,7 @@ restoring the plugin, if you previously removed it.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-catalog-backend
|
||||
yarn add --cwd packages/backend @backstage/plugin-catalog-backend
|
||||
```
|
||||
|
||||
### Adding the plugin to your `packages/backend`
|
||||
|
||||
@@ -19,8 +19,7 @@ Some features are not yet available for all supported Git providers.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-catalog-import
|
||||
yarn add --cwd packages/app @backstage/plugin-catalog-import
|
||||
```
|
||||
|
||||
2. Add the `CatalogImportPage` extension to the app:
|
||||
|
||||
@@ -20,8 +20,7 @@ plugin, if you previously removed it.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-catalog
|
||||
yarn add --cwd packages/app @backstage/plugin-catalog
|
||||
```
|
||||
|
||||
### Add the plugin to your `packages/app`
|
||||
|
||||
@@ -11,8 +11,7 @@ Website: [https://circleci.com/](https://circleci.com/)
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-circleci
|
||||
yarn add --cwd packages/app @backstage/plugin-circleci
|
||||
```
|
||||
|
||||
2. Add the `EntityCircleCIContent` extension to the entity page in your app:
|
||||
|
||||
@@ -10,8 +10,7 @@ The Code Climate Plugin displays a few stats from the quality section from [Code
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-code-climate
|
||||
yarn add --cwd packages/app @backstage/plugin-code-climate
|
||||
```
|
||||
|
||||
2. Add the `EntityCodeClimateCard` to the EntityPage:
|
||||
|
||||
@@ -17,8 +17,7 @@ Learn more with the Backstage blog post [New Cost Insights plugin: The engineer'
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-cost-insights
|
||||
yarn add --cwd packages/app @backstage/plugin-cost-insights
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -34,8 +34,7 @@ Install the AWS Cost Explorer SDK. The AWS docs recommend using the SDK over mak
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @aws-sdk/client-cost-explorer
|
||||
yarn add --cwd packages/app @aws-sdk/client-cost-explorer
|
||||
```
|
||||
|
||||
## Usage of the SDK
|
||||
|
||||
@@ -18,8 +18,7 @@ The [FireHydrant](https://firehydrant.io) plugin brings incident management to B
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-firehydrant
|
||||
yarn add --cwd packages/app @backstage/plugin-firehydrant
|
||||
```
|
||||
|
||||
2. Add the plugin to `EntityPage.tsx`, inside the `const overviewContent`'s parent `<Grid>` component:
|
||||
|
||||
@@ -10,8 +10,7 @@ The FOSSA Plugin displays code statistics from [FOSSA](https://fossa.com/).
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-fossa
|
||||
yarn add --cwd packages/app @backstage/plugin-fossa
|
||||
```
|
||||
|
||||
2. Add the `EntityFossaCard` to the EntityPage:
|
||||
|
||||
@@ -39,8 +39,7 @@ TBD
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-github-actions
|
||||
yarn add --cwd packages/app @backstage/plugin-github-actions
|
||||
```
|
||||
|
||||
2. Add to the app `EntityPage` component:
|
||||
|
||||
@@ -14,8 +14,7 @@ The GitHub Deployments Plugin displays recent deployments from GitHub.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-github-deployments
|
||||
yarn add --cwd packages/app @backstage/plugin-github-deployments
|
||||
```
|
||||
|
||||
2. Add the `EntityGithubDeploymentsCard` to the EntityPage:
|
||||
|
||||
@@ -13,8 +13,7 @@ Start out by installing the plugin in your Backstage app:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-graphiql
|
||||
yarn add --cwd packages/app @backstage/plugin-graphiql
|
||||
```
|
||||
|
||||
```diff
|
||||
|
||||
@@ -10,8 +10,7 @@ If you have a standalone app (you didn't clone this repo), then do
|
||||
|
||||
```bash
|
||||
# From the Backstage repository root
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-home
|
||||
yarn add --cwd packages/app @backstage/plugin-home
|
||||
```
|
||||
|
||||
### Setting up the Home Page
|
||||
|
||||
@@ -27,8 +27,7 @@ Install the plugin:
|
||||
|
||||
```bash
|
||||
# From the Backstage repository root
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-ilert
|
||||
yarn add --cwd packages/app @backstage/plugin-ilert
|
||||
```
|
||||
|
||||
Add it to the `EntityPage.tsx`:
|
||||
|
||||
@@ -14,8 +14,7 @@ This plugin needs to be added to an existing backstage instance.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-jenkins-backend
|
||||
yarn add --cwd packages/backend @backstage/plugin-jenkins-backend
|
||||
```
|
||||
|
||||
Typically, this means creating a `src/plugins/jenkins.ts` file and adding a reference to it to `src/index.ts`
|
||||
|
||||
@@ -12,8 +12,7 @@ Website: [https://jenkins.io/](https://jenkins.io/)
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-jenkins
|
||||
yarn add --cwd packages/app @backstage/plugin-jenkins
|
||||
```
|
||||
|
||||
2. Add and configure the [jenkins-backend](../jenkins-backend) plugin according to it's instructions
|
||||
|
||||
@@ -27,10 +27,9 @@ _It's likely you will need to [enable CORS](https://developer.mozilla.org/en-US/
|
||||
|
||||
When you have an instance running that Backstage can hook into, first install the plugin into your app:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-lighthouse
|
||||
yarn add --cwd packages/app @backstage/plugin-lighthouse
|
||||
```
|
||||
|
||||
Modify your app routes in `App.tsx` to include the `LighthousePage` component exported from the plugin, for example:
|
||||
|
||||
@@ -42,8 +42,7 @@ First, install the PagerDuty plugin via a CLI:
|
||||
|
||||
```bash
|
||||
# From your Backstage app root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-pagerduty
|
||||
yarn add --cwd packages/app @backstage/plugin-pagerduty
|
||||
```
|
||||
|
||||
Next, add the plugin to `EntityPage.tsx` in `packages/app/src/components/catalog` by adding the following code snippets.
|
||||
@@ -133,8 +132,7 @@ pagerduty:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn remove @backstage/plugin-pagerduty
|
||||
yarn remove --cwd packages/app @backstage/plugin-pagerduty
|
||||
```
|
||||
|
||||
4. [Delete the integration](https://support.pagerduty.com/docs/services-and-integrations#delete-an-integration-from-a-service) from the service in PagerDuty
|
||||
|
||||
@@ -19,8 +19,7 @@ Each of the entries in the table will direct you to the error details in your de
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-periskop
|
||||
yarn add --cwd packages/app @backstage/plugin-periskop
|
||||
```
|
||||
|
||||
3. Add to the app `EntityPage` component:
|
||||
|
||||
@@ -10,8 +10,7 @@ Website: [https://rollbar.com/](https://rollbar.com/)
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-rollbar
|
||||
yarn add --cwd packages/app @backstage/plugin-rollbar
|
||||
```
|
||||
|
||||
3. Add to the app `EntityPage` component:
|
||||
|
||||
@@ -8,9 +8,9 @@ You need to configure the action in your backend:
|
||||
|
||||
## From your Backstage root directory
|
||||
|
||||
```
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-scaffolder-backend-module-cookiecutter
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
yarn add --cwd packages/backend @backstage/plugin-scaffolder-backend-module-cookiecutter
|
||||
```
|
||||
|
||||
Configure the action:
|
||||
|
||||
@@ -13,9 +13,9 @@ You need to configure the action in your backend:
|
||||
|
||||
## From your Backstage root directory
|
||||
|
||||
```
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-scaffolder-backend-module-rails
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
yarn add --cwd packages/backend @backstage/plugin-scaffolder-backend-module-rails
|
||||
```
|
||||
|
||||
Configure the action (you can check
|
||||
|
||||
@@ -8,9 +8,9 @@ You need to configure the action in your backend:
|
||||
|
||||
## From your Backstage root directory
|
||||
|
||||
```
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-scaffolder-backend-module-yeoman
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
yarn add --cwd packages/backend @backstage/plugin-scaffolder-backend-module-yeoman
|
||||
```
|
||||
|
||||
Configure the action:
|
||||
|
||||
@@ -21,8 +21,7 @@ restoring the plugin, if you previously removed it.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-scaffolder-backend
|
||||
yarn add --cwd packages/backend @backstage/plugin-scaffolder-backend
|
||||
```
|
||||
|
||||
### Adding the plugin to your `packages/backend`
|
||||
|
||||
@@ -20,8 +20,7 @@ the plugin, if you previously removed it.
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-scaffolder
|
||||
yarn add --cwd packages/app @backstage/plugin-scaffolder
|
||||
```
|
||||
|
||||
### Add the plugin to your `packages/app`
|
||||
|
||||
@@ -10,8 +10,7 @@ The Sentry Plugin displays issues from [Sentry](https://sentry.io).
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-sentry
|
||||
yarn add --cwd packages/app @backstage/plugin-sentry
|
||||
```
|
||||
|
||||
2. Add the `EntitySentryCard` to the EntityPage:
|
||||
|
||||
@@ -10,8 +10,7 @@ The SonarQube Plugin displays code statistics from [SonarCloud](https://sonarclo
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-sonarqube
|
||||
yarn add --cwd packages/app @backstage/plugin-sonarqube
|
||||
```
|
||||
|
||||
2. Add the `EntitySonarQubeCard` to the EntityPage:
|
||||
|
||||
@@ -21,8 +21,7 @@ Install the plugin:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-splunk-on-call
|
||||
yarn add --cwd packages/app @backstage/plugin-splunk-on-call
|
||||
```
|
||||
|
||||
Add it to your `EntityPage`:
|
||||
|
||||
@@ -10,8 +10,7 @@ To add this FactChecker into your Tech Insights you need to install the module i
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-tech-insights-backend-module-jsonfc
|
||||
yarn add --cwd packages/backend @backstage/plugin-tech-insights-backend-module-jsonfc
|
||||
```
|
||||
|
||||
and modify the `techInsights.ts` file to contain a reference to the FactCheckers implementation.
|
||||
|
||||
@@ -10,8 +10,7 @@ as well as a framework to run fact retrievers and store fact values in to a data
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-tech-insights-backend
|
||||
yarn add --cwd packages/backend @backstage/plugin-tech-insights-backend
|
||||
```
|
||||
|
||||
### Adding the plugin to your `packages/backend`
|
||||
@@ -197,8 +196,7 @@ To add the default FactChecker into your Tech Insights you need to install the m
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/backend
|
||||
yarn add @backstage/plugin-tech-insights-backend-module-jsonfc
|
||||
yarn add --cwd packages/backend @backstage/plugin-tech-insights-backend-module-jsonfc
|
||||
```
|
||||
|
||||
and modify the `techInsights.ts` file to contain a reference to the FactChecker implementation.
|
||||
|
||||
@@ -14,8 +14,7 @@ Main areas covered by this plugin currently are:
|
||||
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-tech-insights
|
||||
yarn add --cwd packages/app @backstage/plugin-tech-insights
|
||||
```
|
||||
|
||||
### Add boolean checks overview (Scorecards) page to the EntityPage:
|
||||
|
||||
@@ -25,10 +25,9 @@ The Tech Radar can be used in two ways:
|
||||
|
||||
For either simple or advanced installations, you'll need to add the dependency using Yarn:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
# From your Backstage root directory
|
||||
cd packages/app
|
||||
yarn add @backstage/plugin-tech-radar
|
||||
yarn add --cwd packages/app @backstage/plugin-tech-radar
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
Reference in New Issue
Block a user