Monorepo for various tools used by subgraph developers.
This repository houses the following tools:
NPM | Name |
---|---|
@graphprotocol/graph-cli |
|
@graphprotocol/graph-ts |
We welcome contributions to this repository. Please follow the Code of Conduct for all the communications.
To run this project locally:
>=20.x
installedpnpm
installedpnpm install
to install dependenciespnpm build
to build the packagespnpm test
to run the testsWe use changeset
to manage releases. Every PR should include a changeset file. The release process
is as follows:
pnpm changeset
to create a changeset file to
summarize the changes.main
, a Github Action will run and create a PR with the version bump
and changelog.main
.Helpful links:
When PRs are merged and to main
we can choose to merge the bot generated changeset PR to main
and it will publish a new version to npm.
Example of a graph-client
release: https://github.com/graphprotocol/graph-client/pull/295
Every PR to main
that includes a changeset file will create a new alpha version.
Example of graph-client
snapshot release:
https://github.com/graphprotocol/graph-client/pull/178#issuecomment-1214822036
Copyright © 2018-2019 Graph Protocol, Inc. and contributors.
The Graph CLI is dual-licensed under the MIT license and the Apache License, Version 2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied. See the License for the specific language governing permissions and limitations under the License.