Skip to content

Commit 8936280

Browse files
fix: prepare for repo name migration to rescript-urql (#258)
1 parent e07ff67 commit 8936280

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+305
-315
lines changed

.all-contributorsrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"projectName": "reason-urql",
2+
"projectName": "rescript-urql",
33
"projectOwner": "FormidableLabs",
44
"repoType": "github",
55
"repoHost": "https://github.com",

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: reason-urql CI
1+
name: rescript-urql CI
22
on:
33
push:
44
branches:

CONTRIBUTING.md

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Contributing to `reason-urql`
1+
## Contributing to `rescript-urql`
22

3-
Thank you so much for contributing to `reason-urql`! We're excited you want to help make this project better with us.
3+
Thank you so much for contributing to `rescript-urql`! We're excited you want to help make this project better with us.
44

5-
`reason-urql` follows the [all contributors spec](https://allcontributors.org/). We believe firmly that the whole community is vital to our success, not just those who contribute code. The best way to get involved is to start by familiarizing yourself with the [`urql`](https://github.com/FormidableLabs/urql/) API and getting familiar with the basics of [Reason](https://reasonml.github.io/) and [BuckleScript](https://bucklescript.github.io/).
5+
`rescript-urql` follows the [all contributors spec](https://allcontributors.org/). We believe firmly that the whole community is vital to our success, not just those who contribute code. The best way to get involved is to start by familiarizing yourself with the [`urql`](https://github.com/FormidableLabs/urql/) API and getting familiar with the basics of [ReScript](https://rescript-lang.org/).
66

77
### How do I contribute?
88

@@ -12,20 +12,20 @@ If you do open a pull request for a new feature or bug, please consider adding t
1212

1313
### How do I set up the project?
1414

15-
This is pretty standard. Simply clone the repo locally:
15+
This is pretty standard. Clone the repo locally:
1616

1717
```sh
18-
git clone https://github.com/FormidableLabs/reason-urql.git
18+
git clone https://github.com/FormidableLabs/rescript-urql.git
1919
```
2020

2121
and install the dependencies:
2222

2323
```sh
24-
cd reason-urql
24+
cd rescript-urql
2525
yarn
2626
```
2727

28-
We _really_ recommend having an editor plugin to run `refmt`, provide inline type annotations, and provide syntax highlighting. [`reason-language-server`](https://github.com/jaredly/reason-language-server) by Jared Forsyth is really excellent for providing all of these features out of the box!
28+
We _really_ recommend having an editor plugin to run the ReScript language server. For VSCode users, [`rescript-vscode`](https://github.com/rescript-lang/rescript-vscode) is the best option.
2929

3030
#### Compiling the Source
3131

@@ -83,26 +83,30 @@ To get coverage statistics:
8383
yarn coverage
8484
```
8585

86-
#### `refmt`
86+
#### Formatting
8787

88-
You can install `refmt` globally by following the installation instructions for [`reason-cli`](https://github.com/reasonml/reason-cli). This will put a lot of nice helpers in your path. You can run `refmt` over the source using the CLI:
88+
Formatting will be handled automatically for you by [`rescript-vscode`](https://github.com/rescript-lang/rescript-vscode). If you're using a different editor than VSCode, check out [the official ReScript plugins](https://rescript-lang.org/docs/manual/latest/editor-plugins) for your editor of choice.
89+
90+
### Publishing
91+
92+
Prior to publishing to `npm`, please consider drafting a release. We like to follow the format outlined by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). To draft a release, add a new entry to CHANGELOG.md. Commit this change in a separate commit following the format:
8993

9094
```sh
91-
refmt --in-place src/*.re
95+
git commit -m "Prepare vX.X.X release."
96+
git push origin main
9297
```
9398

94-
We recommend letting the editor take care of this for you by installing `reason-language-server`. We don't currently enforce a specific `refmt` version, but please always attempt to use the latest version for your OS.
99+
#### Publishing to NPM
95100

96-
### Publishing
97-
98-
When it comes time to publish a new version of `reason-urql`, we follow a pretty standard workflow using [semantic versioning](https://semver.org/). **Make sure you have, and are on, latest `master` before publishing.**
101+
Once you've added the CHANGELOG update and pushed the commit, you're ready to publish. We follow a pretty standard workflow using [semantic versioning](https://semver.org/). **Make sure you are on latest `main` before publishing.**
99102

100103
```sh
104+
git pull origin main
105+
106+
# Assuming you have latest main...
101107
yarn version --<major | minor | patch>
102108
yarn publish
103109
git push && git push --tags
104110
```
105111

106-
#### Drafting a Release
107-
108-
Once you have succesfully published to `npm`, please consider [drafting a release](https://github.com/FormidableLabs/reason-urql/releases). We like to follow the format outlined by [Keep a Changleog](https://keepachangelog.com/en/1.0.0/). In addition to drafting a release, please also update the CHANGELOG after publishing with the same copy you used to draft the release.
112+
Once the release is published, make sure you copy the CHANGELOG update to [the formal Releases page](https://github.com/FormidableLabs/rescript-urql/releases).

0 commit comments

Comments
 (0)