Giter Site home page Giter Site logo

react-quizbcouncil's Introduction

React Quiz

A React Quiz component developed by the British Council.

Usage

To start the demo

npm install
npm start
open http://localhost:3000

To run tests:

npm test -- --watch

Releasing

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

  1. You should only publish the master branch. Make sure to be clear on what kind of version it is (patch, minor or major). Create a new version:

    npm version patch
    

    This transpiles the source files to ES5 using babel. The version is bumped and committed to both master and in the dist branch (which is an orphan branch that only includes the files we want to distribute). You'll be left in the dist branch.

  2. Ensure you are in the dist branch. Do a git log to 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 --tags
    
  3. Again, make sure you are still in the dist branch. Publish to npm:

    Example:

    npm publish ./
    
  4. Go back to master branch and push it.

Credits

webpack setup based on React Hot Boilerplate.

react-quizbcouncil's People

Contributors

robinedman avatar andreadsw avatar lucjawszola avatar dakala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.