Thanks for contributing! Here are some basic guidelines:
- Make sure you have a GitHub account.
- Fork the repository on GitHub.
- Pull down the source.
- Run
npm install
.
- Create a topic branch from
master
. *git checkout -b my_branch master
. - Make your changes in
src/
files. * Follow the JSDoc documentation pattern present in other files. * Add tests where appropriate. * Make commits of logical units.- Reference Issue numbers if appropriate.
- Create a Pull Request (PR).
* Push your changes to a topic branch in your fork of the repository.
* Create a PR. You may have to click
Compare across Forks
first.- Fill in the sections of the Pull Request Template presented.
You'll notice that the GitHub repository does not contain the dist/
directory.
This is created locally after running npm install
by running babel on the
src/
directory to transpile the ES6 code in src/
to ES5 code in dist/
.
This allows for use of ES6 in all Node.js environments.
A pre-commit script runs unit tests and the linter before accepting a commit. If a commit fails either of these, it must be fixed before the changes can be committed.
For this project, tape is the test framework and ESLint is used for linting.
npm run test
npm run eslint