react-quiz v2.2.0
React Quiz
A React Quiz component developed by the British Council.
Usage
To start the demo
npm install
npm start
open http://localhost:3000To run tests:
npm test -- --watchReleasing
We use Semantic Versioning and bump versions using the npm version command (see npm docs). We've defined preversion and postversion
hooks in package.json.
How to release a new version
You should only publish the master branch. Make sure to be clear on what kind of version it is (
patch,minorormajor). Create a new version:npm version patchThis transpiles the source files to ES5 using babel. The version is bumped and committed to both master and in the
distbranch (which is an orphan branch that only includes the files we want to distribute). You'll be left in thedistbranch.Ensure you are in the
distbranch. Do agit logto check that the version number is correct. Test that the version works correctly. When you're confident, push to GitHub:git push origin && git push origin --tagsAgain, make sure you are still in the
distbranch. Publish to npm:Example:
npm publish ./Go back to master branch and push it.
Credits
webpack setup based on React Hot Boilerplate.