Skip to content

Commit

Permalink
Merge pull request #209 from Shopify/amomchilov-patch-3
Browse files Browse the repository at this point in the history
Improve README.md formatting
  • Loading branch information
amomchilov authored Jan 8, 2024
2 parents 47a90ec + fb5c8bf commit 2d3aa36
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,32 @@ In this repository, annotations are placed in the `rbi/annotations` folder.

Each annotation from the `rbi/annotations` folder must be defined in the `index.json` file at the root of this repository:

```json
```jsonc
{
"gemA": { // gem name
"dependencies": [ // optional: list of gems that need to be installed to test gemA RBI
// optional: list of gems that need to be installed to test gemA RBI
"dependencies": [
"gemB",
"gemC"
],
"requires": [ // optional: list of files that need to be required to test gemA RBI
// optional: list of files that need to be required to test gemA RBI
"requires": [
"file1",
"file2",
]
}
}
```

If you're copying this into your own `index.json`, make sure you strip out the comments.

See the index [validation schema](schema.json) for more details.

### Pulling annotations

To pull relevant gem annotations into your project, run Tapioca's [`annotations` command](https://github.com/Shopify/tapioca#pulling-rbi-annotations-from-remote-sources) inside your project:
```

```shell
$ bin/tapioca annotations
```

Expand Down

0 comments on commit 2d3aa36

Please sign in to comment.