0.0.2 • Published 8 years ago
px-components-react v0.0.2
px-components-react
Why? Well the current px component library is built with Polymer and Web Components. So this port will attempt to bring those components to a React compatible library.
Install
To use this library simply install it with npm or yarn:
$ npm install px-components-reactThen import the library or just components you want.
import px from 'px-components-react';
import {Button} from 'px-components-react';
<Button label='My Button' primary/>Build
- Start dev server -
$ npm start - Creating a version -
$ npm version <x.y.z> - Publishing a version -
$ npm publish - Create a dist build -
$ npm run dist
Test
- Running tests:
$ npm test - Running code coverage:
$ npm run test:coverage - Running tests continuously:
$ npm run test:watch - Running individual tests:
$ npm test -- <pattern> - Linting with eslint:
$ npm run test:lint
Docs
- Building documentation:
$ npm run gh-pages - Deploying documentation:
$ npm run gh-pages:deploy - Generating bundle stats:
$ npm run gh-pages:stats
License
Available under MIT. See LICENSE for more details.