@laborit-dev/laborit-ds
v0.0.6-beta
Published
Laborit Web Design System - Styled Components based
Downloads
5
Readme
Requirements
- nvm (v1.1.7) (install details)
- node (v12.16.1) (install details)
- npm (v6.13.4)
How to use
First install the library
yarn add @laborit-dev/laborit-ds
Insert our style reset in your project. Copy the file or the contents of https://gitlab.com/laborit/laborit-ds/-/blob/develop/.storybook/styles.css
At the beginning of your project:
import 'styles.css'
Use the library according to the documentation:
import { Button } from `@laborit-dev/laborit-ds`
<Button {...props}>...</Button>
Testing
Using jest with enzyme (see examples on ./src/client/**/*.spec.js
)
npm run test
or
yarn test
Coverage
yarn test:coverage
Code quality, patterns
Using Eslint and Prettier
npm run lint
npm run prettier
or
yarn lint
yarn prettier