Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 2.29 KB

CONTRIBUTING.md

File metadata and controls

54 lines (32 loc) · 2.29 KB

Contributing

We are open to, and grateful for, any contributions made by you. By contributing to DraftJS Plugins, you agree to abide by the code of conduct.

Reporting Issues and Asking Questions

Before opening an issue, please search the issue tracker to make sure your issue hasn’t already been reported.

Development

You must have Node.js v5 or later installed to develop DraftJS plugins. We mostly use the docs to hack & prototype new features. Get it up & running with:

npm install
cd docs
npm install
npm start

Linting

We follow the Airbnb JavaScript Styleguide with a few exeptions. Checkout the .eslintrc, .jscsrc and .flowconfig to see the rules. With running this command you can check if your code-changes comply to the style we chose:

npm run lint

Do not hesitate to propose changes to the style. We are open to these as well.

Testing

Please help us to improve the test-suite, by adding & updating tests together with your submission. While it's not mandatory it makes our lives way easier to review your changes and keep up the quality of the software.

Run all the tests via:

npm test

Changelog

We keep a changelog for each released package. Please help us by adding your changes to the changelog. We follow the recommendations of keepachangelog.com.

Documentation

Independent improvements to the documentation are very welcome. I (Nik) would even argue that most of them are even more valuable than changes to the libraries themselves.

We are also happy about updates to the documentation in combination with changes.

Publishing Github Pages (for the core team)

Run ./scripts/publishGithubPages.sh

The build script renames the .babelrc files of all plugins to avoid issues with the build. In the future we might be able to remove this again.