First of all, thank you for your consideration for contributing to this project! All requests and questions are greatly appreciated.
Ensure that both node
and npm
are installed on your machine.
Make sure that you have the StandardJS and Editorconfig plugins installed for your respective text editors!
npm run build
- Compilessrc
and outputs todist
npm run dev
- Watchessrc
and rebuilds on file changesnpm run lint
- Runsstandard
linter and outputs style errors. Used innpm test
npm run lint:fix
- Fixes most of the style errorsnpm run report
- Ran afternpm test
and creates a code coverage reportnpm test
- Runs linter and test suite with code coverage details
Running npm test
is pretty good for basic testing. To see how the package runs, run npm link
to "install
" this package to your global package list.
npm run build
compiles the code down to es5. To speed up development even more, open another terminal and run npm run dev
. This watches the src
directory and recompiles the code as you save.
If your changes fail the test suite, either fix your code or refactor the tests to reflect the additions/changes. Also try to keep code coverage at least 90%.
I want this project to be as useful as possible for others. I try to make a bunch of the project configurations as simple as possible for both new and experienced developers. If there's any suggestions to make this a bit easier, please feel free to reach out.