Skip to content

Commit d63c5dd

Browse files
nikgrafmxstbr
authored andcommitted
Contributing
* add code of conduct * add contribution guide lines * update readme * improve contribution guide
1 parent 93241e0 commit d63c5dd

File tree

3 files changed

+96
-14
lines changed

3 files changed

+96
-14
lines changed

Diff for: CODE_OF_CONDUCT.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
Using welcoming and inclusive language
12+
Being respectful of differing viewpoints and experiences
13+
Gracefully accepting constructive criticism
14+
Focusing on what is best for the community
15+
Showing empathy towards other community members
16+
Examples of unacceptable behavior by participants include:
17+
18+
The use of sexualized language or imagery and unwelcome sexual attention or advances
19+
Trolling, insulting/derogatory comments, and personal or political attacks
20+
Public or private harassment
21+
Publishing others' private information, such as a physical or electronic address, without explicit permission
22+
Other conduct which could reasonably be considered inappropriate in a professional setting
23+
Our Responsibilities
24+
25+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
26+
27+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
28+
29+
## Scope
30+
31+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
32+
33+
## Enforcement
34+
35+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
36+
37+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
38+
39+
## Attribution
40+
41+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4.

Diff for: CONTRIBUTING.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Contributing
2+
3+
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](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/CODE_OF_CONDUCT.md).
4+
5+
## Reporting Issues and Asking Questions
6+
7+
Before opening an issue, please search the [issue tracker](https://github.com/draft-js-plugins/draft-js-plugins/issues) to make sure your issue hasn’t already been reported.
8+
9+
## Development
10+
11+
You must have [Node.js v5](https://nodejs.org/en/download/package-manager/) or later installed to develop DraftJS plugins. We mostly use the docs to hack & prototype new features. Get it up & running with:
12+
13+
```sh
14+
npm install
15+
cd docs
16+
npm install
17+
npm start
18+
```
19+
20+
## Linting
21+
22+
Wo follow the [Airbnb JavaScript Styleguide ](https://github.com/airbnb/javascript) with a few exeptions. Checkout the [.eslintrc](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/.eslintrc), [.jscsrc](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/.jscsrc) and [.flowconfig](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/.flowconfig) to see the rules. With running this command you can check if your code-changes comply to the style we chose:
23+
24+
```sh
25+
npm run lint
26+
```
27+
28+
Do not hesitate to propose changes to the style. We are open to these as well.
29+
30+
## Testing
31+
32+
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.
33+
34+
Run all the tests via:
35+
36+
```sh
37+
npm test
38+
```
39+
40+
## Changelog
41+
42+
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](http://keepachangelog.com/).
43+
44+
## Documentation
45+
46+
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.
47+
48+
We are also happy about updates to the documentation in combination with changes.
49+
50+
## Publishing Github Pages (for the core team)
51+
52+
Run `./script/publishGithubPages.sh`
53+
54+
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.

Diff for: README.md

+1-14
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,7 @@ Join the channel #plugin-editor after signing into the DraftJS [Slack organizati
102102

103103
## Development
104104

105-
You must have [Node.js v5](https://nodejs.org/en/download/package-manager/) or later installed to develop DraftJS plugins.
106-
107-
```sh
108-
npm install
109-
cd docs
110-
npm install
111-
npm start
112-
```
113-
114-
## Publishing Github Pages
115-
116-
Run `./script/publishGithubPages.sh`
117-
118-
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.
105+
Check out our [Contribution Guide](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/CONTRIBUTING.md).
119106

120107
## License
121108

0 commit comments

Comments
 (0)