Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.56 KB

HOW_TO_CONTRIBUTE.md

File metadata and controls

44 lines (31 loc) · 1.56 KB

How to Contribute to Roundware Web Framework

Setup

git clone https://github.com/roundware/roundware-web-framework.git
cd roundware-web-framework
npm install
npm test

Workflow

npm test                      # run test suite
ROUNDWARE_DEBUG=true npm test # send logging statements to STDOUT

npm run devstart && open http://localhost:8080        # Uses webpack to live-reload source code in your browser
npm run cover && open coverage/lcov-report/index.html # checks code coverage and opens a report in the browser
npm run check-coverage                                # make sure we have 100% unit test coverage; no excuses!

Unit Testing

Our standard is 100% unit test coverage. Run npm run check-coverage && open coverage/lcov-report/index.html to check.

Documentation

  • We aim for 100% documentation coverage. This is a good place to jump into the project - look for some undocumented methods and see if you can figure out what they do!
  • All classes and methods should be documented with JSDoc comments. These are used to build the project documentation site.

How to Release

npm test          # make sure everything passes
npm run build     # make sure the build works
npm run docbuild  # if needed, creates jsdoc HTML files in doc/, which powers the project site

# commit changes, if any

npm version prerelease # or major, premajor, minor, preminor, patch, prepatch, or prerelease; also creates a git tag
git push && git push --tags
npm publish --tag alpha