summaryrefslogtreecommitdiff
path: root/node_modules/@phntms/use-local-state/CONTRIBUTING.md
blob: fb742b71cbb4becd0d8b9e43bf0b3a0fb394013e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# How to contribute

I'm really happy that you're interested in helping out with this little project.

As this is very early days for the project there's not a lot in the way of
resources, but please check out the [documentation](./README.md), and also the
[list of issues](https://github.com/phantomstudios/use-local-state/issues).

Please submit an issue if you need help with anything.

We have a [code of conduct](./CODE_OF_CONDUCT.md) so please make sure you follow
it.

## Testing

Testing is performed using `jest` and is tested on Windows, Linux and MacOS with
Node 10 and 12 runtimes. For a PR to be considered all these environments need to
pass. Testing is automated using GitHub Actions CI.

## Submitting changes

Please send a
[GitHub Pull Request to use-local-state](https://github.com/phantomstudios/use-local-state/pull/new/master)
with a clear list of what you've done (read more about
[pull requests](https://help.github.com/en/articles/about-pull-requests)). When you send a pull
request, please make sure you've covered off all the points in the template.

Make sure you've read about our workflow (below); in essence make sure each Pull
Request is atomic but don't worry too much about the commits themselves as we use
squash-and-merge.

## Our workflow

We use [GitHub flow](https://guides.github.com/introduction/flow/); it's a lot
like git-flow but simpler and more forgiving. We use the `squash and merge`
strategy to merge Pull Requests.

In effect this means:

- Don't worry about individual commits. They will be preserved, but not on the
  main `master` branch history, so feel free to commit early and often, using
  git as a save mechanism.
- Your Pull Request title and description become very important; they are the
  history of the master branch and explain all the changes.
- You ought to be able to find any previous version easily using GitHub tabs, or
  [Releases](https://github.com/phantomstudios/use-local-state/releases)

Thanks, John Chipps-Harding