UNPKG

2.66 kBMarkdownView Raw
1# How to contribute to egjs-flicking
2egjs-flicking 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-flicking 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-flicking 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 - **demo**: Adding missing demos. Changing demos.
36 - **chore**: Changes to the build process or tools and libraries such as documentation generation
37
38[See More Commit Log Guidelines](https://github.com/naver/egjs/wiki/Commit-Log-Guidelines)
39
40## How to submit Pull Requests
41Steps to submit your pull request:
42
431. Fork `egjs-flicking` on your repository
442. Create new branch from your egjs master branch (and be sure always to be up-to-date)
453. Do your work
464. Create test code for your work (when is possible)
475. Run `npm run lint` for linting and Code Conventions (update until without any error or warnings)
486. Run test code by `npm run test OR npm run test:chrome`.
49 Make sure tests are all passed at least in Chrome(latest desktop version)
508. Write commit log following convention and push to your repository branch.
519. Create a new PR from your branch to egjs-flicking.
5210. Wait for reviews.
53 When your contribution is well enough to be accepted, then will be merged to our branch.
5411. All done!
55
56
57## License
58By contributing to egjs-flicking, you're agreeing that your contributions will be licensed under its [MIT](https://opensource.org/licenses/MIT) license.
\No newline at end of file