1.1.6 • Published 3 years ago

@thercu-org/quiz v1.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

quiz

Library for using the RCU's quiz component

Usage

import { makeQuiz } from "@thercu-org/quiz";
import "@thercu-org/quiz/index.css";

const Quiz = makeQuiz(
  fetch,
  'SOME_API_URL',
  'SOME_API_KEY',
);

// ... then ...

export default () => (
  <Quiz
    afterCompleteLabel="LABEL FOR REDIRECT BUTTON"
    afterCompleteUrl="URL FOR REDIRECT BUTTON"
    clientId="THE_CLIENT_ID"
    id="THE_QUIZ_ID"
    userId="THE_USER_ID"
  />
);

Bundle for production

$ npm run build

Release package to NPM

First, make sure all code is pushed to Git, then run:

$ npm run release [version]

where [version] is either major, minor, or patch

for example:

$ npm run release patch
1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago