-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ba0419
commit d378754
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Contributing | ||
|
||
All contributions to this repository are more than welcome and appreciated a lot 🎉 | ||
Don't hesitate to [create a new issue](https://github.com/cyrilwanner/next-compose-plugins/issues/new) if you have any question. | ||
|
||
## Setup instructions | ||
|
||
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device. | ||
2. Install the dependencies: `npm install` | ||
3. Run `npm link` to link the local repo to NPM | ||
4. Run `npm run watch` to build and watch for code changes | ||
5. Then npm link this repo inside any example app with `npm link next-compose-plugins` | ||
6. Then you can run your example app with the local version of next-compose-plugins to test your changes | ||
|
||
## Testing | ||
|
||
We write tests for all major functionality of this plugin to ensure a good code quality. | ||
Please update and/or write new tests when contributing to this repository. | ||
|
||
You can run the tests locally with `npm test`. | ||
Please note that test will get executed against the built sources, so make sure you are either watching the files or build them once (`npm run build`) before running the tests. | ||
|
||
## Coding style | ||
|
||
Code should written to match the [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript). | ||
|
||
You can lint the code locally with `npm run lint`. | ||
|
||
To automatically fix some of the most common problems, run `npm run lint:fix`. |