You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+21-17
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
## Contributing to `reason-urql`
1
+
## Contributing to `rescript-urql`
2
2
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.
4
4
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/).
6
6
7
7
### How do I contribute?
8
8
@@ -12,20 +12,20 @@ If you do open a pull request for a new feature or bug, please consider adding t
12
12
13
13
### How do I set up the project?
14
14
15
-
This is pretty standard. Simply clone the repo locally:
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.
29
29
30
30
#### Compiling the Source
31
31
@@ -83,26 +83,30 @@ To get coverage statistics:
83
83
yarn coverage
84
84
```
85
85
86
-
#### `refmt`
86
+
#### Formatting
87
87
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:
89
93
90
94
```sh
91
-
refmt --in-place src/*.re
95
+
git commit -m "Prepare vX.X.X release."
96
+
git push origin main
92
97
```
93
98
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
95
100
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.**
99
102
100
103
```sh
104
+
git pull origin main
105
+
106
+
# Assuming you have latest main...
101
107
yarn version --<major | minor | patch>
102
108
yarn publish
103
109
git push && git push --tags
104
110
```
105
111
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