npm install
All source code is in ES module format in the src/
directory.
Please be mindful of users who need backwards compatibility. Do not use new language features such as spread syntax or async
/await
unless you really need to. Transpiled code can be bulky and polyfills tend to be huge.
Please see the .editorconfig on how to format whitespace. Installing the appropriate editorconfig plugin for your favorite editor is the easiest way to ensure that you respect the conventions.
npm run test
, then open http://localhost:9876/ in a browser. Test output goes to the terminal. As long as the browser tab stays in the foreground, tests will automatically rerun when you edit the code.
Press the DEBUG button in the browser in order to get a version of the page where you can inspect the code and set breakpoints.
If you edit the karma.conf.js
or the package.json
, you need to stop and restart the process in order for changes to take effect.
Gitflow. main
is the branch with only releases, develop
is our integration branch where all pull requests go. Versions are tagged with a v
prefix, for example v1.2.3
.
- Create a release branch and have it reviewed.
- Double-check that you bumped the version number and that all tests pass.
- Double-check that changes are documented.
- Run
npm publish
. - Run
git flow release finish
if you can and skip to step 8. Otherwise continue with the next step. - Merge the release branch both in
main
and indevelop
. - Tag the merge commit on
main
with the version number. - Push
main
,develop
and the new tag to the upstream repository. - Generate release notes for the new tag on GitHub.