Skip to content

Commit 25837e1

Browse files
committed
registry metadata
1 parent 3020563 commit 25837e1

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

.changeset/rich-months-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"example-typescript": patch
3+
---
4+
5+
chore: add metadata to registry

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ jsrepo add # list components
191191
jsrepo add utils/calculator # add individual
192192
```
193193

194-
### 5. Advanced usage
194+
and from the [jsrepo.com](https://jsrepo.com) page for your registry located at `https://jsrepo.com/@<scope>/<name>`.
195195

196-
#### Un-listing blocks
196+
## 5. Advanced usage
197+
198+
### Un-listing blocks
197199

198200
Now let's do a few things to improve our registry.
199201

@@ -213,7 +215,26 @@ Now when we list our blocks only `calculator` will appear.
213215

214216
> Alternatively if we had more internal utils we could use `listBlocks` and only include `calculator` to prevent others from showing up here.
215217
216-
#### Changesets
218+
### Metadata
219+
220+
[jsrepo.com](https://jsrepo.com) uses metadata you provide in your `jsrepo-build-config.json` to display on your registries homepage.
221+
222+
```jsonc
223+
{
224+
// -- snip --
225+
"meta": {
226+
"authors": ["Aidan Bleser"],
227+
"bugs": "https://github.com/jsrepojs/example-typescript",
228+
"description": "A demo to show you can you can deploy your first typescript registry to jsrepo.com",
229+
"homepage": "https://github.com/jsrepojs/example-typescript",
230+
"repository": "https://github.com/jsrepojs/example-typescript",
231+
"tags": ["registry", "typescript", "example", "jsrepo"]
232+
},
233+
// -- snip --
234+
}
235+
```
236+
237+
### Changesets
217238

218239
Another thing you may want to setup if you are publishing a registry to [jsrepo.com](https://jsrepo.com) is [changesets](https://github.com/changesets/changesets).
219240

@@ -310,4 +331,4 @@ Now lets create a changeset:
310331
pnpm changeset
311332
```
312333

313-
Now once we commit our changeset to main changesets will automatically open a PR and version our package for us to create a release.
334+
Now once we commit our changeset to main changesets will automatically open a PR and version our package for us to create a release.

jsrepo-build-config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"$schema": "https://unpkg.com/[email protected]/schemas/registry-config.json",
33
"name": "@example/typescript",
4+
"meta": {
5+
"authors": ["Aidan Bleser"],
6+
"bugs": "https://github.com/jsrepojs/example-typescript",
7+
"description": "A demo to show you can you can deploy your first typescript registry to jsrepo.com",
8+
"homepage": "https://github.com/jsrepojs/example-typescript",
9+
"repository": "https://github.com/jsrepojs/example-typescript",
10+
"tags": ["registry", "typescript", "example", "jsrepo"]
11+
},
412
"version": "package",
513
"readme": "README.md",
614
"dirs": ["./src"],

0 commit comments

Comments
 (0)