npm.io
0.1.8 • Published 5 years ago

jasper-ui

Licence
MIT
Version
0.1.8
Deps
3
Size
110 kB
Vulns
0
Weekly
0
Stars
4

jasper-ui

COMPFEST React Component Library

NPM Build CI Deploy Docs codecov

Docs

See the documentation here.

Install

npm install --save jasper-ui

Usage

import React, { Component } from 'react'

import { Button } from 'jasper-ui'
import 'jasper-ui/dist/index.css'

class Example extends Component {
  render() {
    return (
      <Button>Yohohoho</Button>
    )
  }
}

Local setup

To install jasper-ui:

  • npm install

To install documentation page:

  • cd docusaurus && npm install

To run storybook:

  • npm run storybook

To run documentation page:

  • Run this in one terminal:
    • npm start
  • Run this in another terminal:
    • cd docusaurus && npm start

Testing

To run all tests:

  • npm test

To run test with coverage:

  • npm run test:coverage

To run test and update snapshots:

  • npm run test:watch

License

MIT COMPFEST