All contributions to this repository are more than welcome and appreciated a lot 🎉 Don't hesitate to create a new issue if you have any question.
- Fork this repository to your own GitHub account and then clone it to your local device.
- Install the dependencies:
npm install
- Run
npm link
to link the local repo to NPM - Run
npm run watch
to build and watch for code changes - Then npm link this repo inside any example app with
npm link next-compose-plugins
- Then you can run your example app with the local version of next-compose-plugins to test your changes
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
.
To watch for code changes and automatically run tests on changes, use npm run test:watch
(babel needs to be started in watching mode too for this in a separate process with npm run watch
).
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.
Code should written to match the Airbnb JavaScript Style Guide.
You can lint the code locally with npm run lint
.
To automatically fix some of the most common problems, run npm run lint:fix
.