ps-components

0.2.5 • Public • Published

PS Components   Build status   npm

A collection of common patterns used across many Professional Services projects.

The aim of this library is to provide a toolbelt of components, that will allow us to compose sites together more quickly and consistently.

Style Guide

We are building this with a living style guide to showcase how to use the various components, using React Styleguidist.

The styleguide will be publicly available at https://everydayhero.github.io/ps-components

While developing, it is useful to serve the styleguide using yarn start, which will hot reload changes as you develop.

Theming and Flexibility

One of the main challenges is providing the required flexibility.

The TraitsProvider component allows us to set our own themes and defaults.

We can manage the look of most components via various props, and even have custom styles injected into them via the styles prop.

Development

Scripts

  • yarn to install dependencies
  • yarn start to generate and serve style guide
  • yarn test to run tests (linting and unit tests)
  • yarn run test:lint to run linting
  • yarn run test:unit to run unit tests
  • yarn run build to build for production
  • yarn run build:styleguide to build the styleguide

Tests

We are aiming to build from the ground up with tests where appropriate, using Mocha, Chai and Enzyme.

To execute the tests, simply run yarn test.


Proposed Name Change

There has been a proposed name change to constructicon to keep with the Transformers theme.

Like taking small components and constructing bigger things with them, like this...

alt text

Readme

Keywords

none

Package Sidebar

Install

npm i ps-components

Weekly Downloads

7

Version

0.2.5

License

MIT

Last publish

Collaborators

  • everydayhero