Skip to content

Commit e241fe1

Browse files
authored
changeset setup (#361)
1 parent a143b3e commit e241fe1

File tree

17 files changed

+146
-80
lines changed

17 files changed

+146
-80
lines changed

.changeset/config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
33
"changelog": "@changesets/cli/changelog",
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": []
10+
"ignore": ["events", "next-example", "docs", "hypergraph-vite-react-template"],
11+
"prettier": false
1112
}

.changeset/deep-banks-trade.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,79 @@
11
# Contributing
22

3+
## Setup
4+
5+
```sh
6+
pnpm install
7+
cd apps/server
8+
cp .env.example .env
9+
# add the PRIVY_APP_SECRET & PRIVY_APP_ID to the apps/server/.env file
10+
pnpm prisma migrate dev
11+
```
12+
13+
## Development
14+
15+
```sh
16+
pnpm build --watch
17+
# in another tab
18+
cd apps/events
19+
pnpm dev
20+
# in another tab
21+
cd apps/server
22+
pnpm dev
23+
```
24+
25+
Any time you make changes to the schema, you will need to run the following commands:
26+
27+
```sh
28+
cd apps/server
29+
pnpm prisma migrate dev # this will also generate the Prisma client
30+
```
31+
32+
To develop the Typesync CLI, you can run:
33+
34+
```sh
35+
cd apps/typesync
36+
pnpm dev
37+
```
38+
39+
To develop the Typesync frontend run:
40+
41+
```sh
42+
# open the vite.config.ts and comment out the server object that specifies the port to be 3000
43+
cd apps/typesync
44+
pnpm run dev:cli
45+
# in another tab
46+
cd apps/typesync
47+
pnpm dev:client
48+
```
49+
50+
You can run the Next example app with:
51+
52+
```sh
53+
# Notes:
54+
# - You need to build the packages first and every time you make changes to the packages
55+
cd apps/next-example
56+
pnpm dev
57+
```
58+
59+
To run the docs locally, you can run:
60+
61+
```sh
62+
cd docs
63+
pnpm start
64+
```
65+
66+
## Changesets
67+
68+
Changesets are used to create a changelog and publish a new version of the package. In order to document your changes, you can run the following command:
69+
70+
```sh
71+
pnpm changeset
72+
```
73+
74+
It will open a prompt to ask you which packages are affected and the type of change you are making.
75+
76+
377
## Upgrading Dependencies
478

579
```sh
@@ -11,6 +85,8 @@ pnpm up --interactive --latest -r
1185
Update the version in the `package.json` files (hypergraph, hypergraph-react, typesync)
1286

1387
```sh
88+
pnpm changeset version
89+
1490
pnpm build
1591
# publish hypergraph
1692
cd packages/hypergraph/publish

README.md

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -14,65 +14,4 @@ Build privacy preserving apps with interoperable data using the GRC-20 standard.
1414

1515
## Development
1616

17-
### Setup
18-
19-
```sh
20-
pnpm install
21-
cd apps/server
22-
cp .env.example .env
23-
# add the PRIVY_APP_SECRET & PRIVY_APP_ID to the apps/server/.env file
24-
pnpm prisma migrate dev
25-
```
26-
27-
### Development
28-
29-
```sh
30-
pnpm build --watch
31-
# in another tab
32-
cd apps/events
33-
pnpm dev
34-
# in another tab
35-
cd apps/server
36-
pnpm dev
37-
```
38-
39-
Any time you make changes to the schema, you will need to run the following commands:
40-
41-
```sh
42-
cd apps/server
43-
pnpm prisma migrate dev # this will also generate the Prisma client
44-
```
45-
46-
To develop the Typesync CLI, you can run:
47-
48-
```sh
49-
cd apps/typesync
50-
pnpm dev
51-
```
52-
53-
To develop the Typesync frontend run:
54-
55-
```sh
56-
# open the vite.config.ts and comment out the server object that specifies the port to be 3000
57-
cd apps/typesync
58-
pnpm run dev:cli
59-
# in another tab
60-
cd apps/typesync
61-
pnpm dev:client
62-
```
63-
64-
You can run the Next example app with:
65-
66-
```sh
67-
# Notes:
68-
# - You need to build the packages first and every time you make changes to the packages
69-
cd apps/next-example
70-
pnpm dev
71-
```
72-
73-
To run the docs locally, you can run:
74-
75-
```sh
76-
cd docs
77-
pnpm start
78-
```
17+
Please refer to the [Contributing Guide](./CONTRIBUTING.md) for more information on how to contribute to the project.

apps/connect/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# connect
2+
3+
## 0.1.0
4+
### Patch Changes
5+
6+
- 114d743: breaking changes of the authentication flow to improve security and fix invitations
7+
- Updated dependencies [dd4746a]
8+
- Updated dependencies [fd0a13f]
9+
- Updated dependencies [114d743]
10+
- @graphprotocol/hypergraph-react@0.1.0
11+
- @graphprotocol/hypergraph@0.1.0

apps/connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "connect",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.1.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite --force",

apps/server/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# server
2+
3+
## 0.1.0
4+
### Patch Changes
5+
6+
- 114d743: breaking changes of the authentication flow to improve security and fix invitations
7+
- Updated dependencies [dd4746a]
8+
- Updated dependencies [fd0a13f]
9+
- Updated dependencies [114d743]
10+
- @graphprotocol/hypergraph@0.1.0

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "server",
3-
"version": "1.0.0",
3+
"version": "0.1.0",
44
"private": true,
55
"type": "module",
66
"scripts": {

apps/typesync/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# @graphprotocol/hypergraph-cli
2+
3+
## 0.1.0
4+
### Patch Changes
5+
6+
- dd4746a: remove unsupported dataType Url
7+
- Updated dependencies [dd4746a]
8+
- @graphprotocol/typesync@0.1.0

apps/typesync/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/hypergraph-cli",
3-
"version": "0.0.0-alpha.28",
3+
"version": "0.1.0",
44
"type": "module",
55
"license": "MIT",
66
"description": "CLI toolchain to view existing types, select, pick, extend to create schemas and generate a @graphprotocol/hypergraph schema.",

0 commit comments

Comments
 (0)