open-index/open-npm huggingface dataset:
npm package: @oriol.hidalgo.tui/backstage-plugin-clone-entity-repository
Description: Welcome to the Backstage Clone Entity Repository plugin!
Author: TUI MM
Latest version: 0.0.5

# Backstage Plugin:  Clone Entity Repository

## Installation

Add the plugin as a package.json dependency

```shell
  yarn add --cwd packages/app @oriol.hidalgo.tui/backstage-plugin-clone-entity-repository
```

Import the plugin on the EntityPage.tsx

```shell
# packages/app/src/components/catalog/EntityPage.tsx
import {
  EntityCloneEntityRepoCard,
  isCloneEntityRepoAvailable
} from '@oriol.hidalgo.tui/backstage-plugin-clone-entity-repository';
```

Add the EntityCloneEntityRepoCard on the EntityPage.tsx

```shell
# packages/app/src/components/catalog/EntityPage.tsx
  
const overviewContent = (
  <Grid container spacing={3} alignItems="stretch">
  ...
    <EntitySwitch>
      <EntitySwitch.Case if={isCloneEntityRepoAvailable}>
        <Grid item>
          <EntityCloneEntityRepoCard/>
        </Grid>
      </EntitySwitch.Case>
    </EntitySwitch>
  ...
  </Grid>
} 
```

To activate the plugin, any of the two available annotations have to be declared on the catalog-info.yaml

```shell
metadata:
  ...
  annotations:
    clone-repo/https: 'CLONE REPO URI'
    clone-repo/ssh: 'CLONE REPO URI'
    ...
```