-
Notifications
You must be signed in to change notification settings - Fork 2
Contribution Guidelines
Chennighan edited this page Feb 4, 2017
·
1 revision
We have a .editorConfig file that contains all of our styling for any editor. Whatever editor you choose to use, please download the extension/addon/plugin you need in order for your editor to pick up and implement the file.
- We follow JSDoc specifications for comments so for example, please try and adapt/mimic the following:
/**
* TypeOfFunction(utility, constructor, factory) for doing x,y,z
* @param {type} nameOfParam: what the param does.
*/
this.explanationFactory = function(nameOfParam) {
};
- Our workflow revolves around 2 main branches: master and develop.
- develop is a direct branch off of master.
- All
feature
andbugfix
branches will branch off of develop and be prepended withfeature/
for feature branches andbugfix/
for bugfix branches. The name of your feature or bugfix must be dash separated, for example:
$ git checkout -b feature/<name-of-my-feature> develop
$ git checkout -b bugfix/<name-of-my-bugfix> develop
-
create a branch for your work:
$ git checkout -b <type of branch>/<name-of-feature-or-bugfix> develop
-
run the unit tests, ensuring that 100% test coverage is maintained:
$ npm test
-
run the tasks you need, ensuring no errors occur and that the dist folder is updating with the correct files locally:
$ grunt
-
commit your work and push to your feature/bugfix branch.
-
create a pull request to merge your feature/bugfix branch into develop.
- All new functions must be accompanied by the appropriate unit testing, and PR's will only be approved if all tests pass, and the addition maintains 100% test coverage across the board.
- All new code must pass through the jshint linter (automatically run when you run grunt).
- Have fun, write some quality code, and innovate!