UNPKG

2.6 kBMarkdownView Raw
1# How to contribute to egjs-view360
2egjs-view360 is opened to everyone and we're welcoming for any kind of contribution.
3We believe that our project can grow with your interests helping others' necessities.
4
5## Style Guide
6
7egjs-view360 has several style guidelines to follow.
8Before your start, please read attentively below instructions.
9
10### Linting and Code Conventions
11We adopted [ESLint](http://eslint.org/) to maintain our code quality. The [rules](https://github.com/naver/eslint-config-naver/tree/master/rules) are modified version based on [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript).
12All rules are described at [.eslintrc](.eslintrc) file.
13
14### Commit Log Guidelines
15egjs-view360 use commit logs in many different purposes (like creating CHANGELOG, ease history searching, etc.).
16To not break, you'll be forced to follow our commit log guidelines.
17Before your commit/push, make sure following our commit log guidelines.
18
19The outline is as below:
20```
21<type>(<module>): <subject>
22<BLANK LINE>
23<body>
24<BLANK LINE>
25<footer>
26```
27
28- **Types**
29 - **feat**: A new feature
30 - **fix**: A bug fix
31 - **docs**: Documentation only changes
32 - **style**: Changes that do not affect the meaning of the code. Such as white-space, formatting, missing semi-colons, etc... It also possible to change JSHint, JSCS rules of the code.
33 - **refactor**: A code change that neither fixes a bug nor adds a feature
34 - **test**: Adding missing tests. Changing tests.
35 - **chore**: Changes to the build process or tools and libraries such as documentation generation
36
37[See More Commit Log Guidelines](https://github.com/naver/egjs/wiki/Commit-Log-Guidelines)
38
39## How to submit Pull Requests
40Steps to submit your pull request:
41
421. Fork `egjs-view360` on your repository
432. Create new branch from your egjs master branch (and be sure always to be up-to-date)
443. Do your work
454. Create test code for your work (when is possible)
465. Run `npm run lint` for linting and Code Conventions (update until without any error or warnings)
476. Run test code by `npm run test OR npm run test:chrome`.
48 Make sure tests are all passed at least in Chrome(latest desktop version)
498. Write commit log following convention and push to your repository branch.
509. Create a new PR from your branch to egjs-view360.
5110. Wait for reviews.
52 When your contribution is well enough to be accepted, then will be merged to our branch.
5311. All done!
54
55
56## License
57By contributing to egjs-view360, you're agreeing that your contributions will be licensed under its [MIT](https://opensource.org/licenses/MIT) license.