React Lorem Ipsum components to be used as placeholders in designs.
View the components in a Storybook here.
npm i react-ipsum
https://www.npmjs.com/package/react-ipsum
- Fork the repo and download / clone your fork.
- Make a new branch name it something like
add-{ComponentName} - Run
npm install - Make your changes following the Standard JS style ( run
npm run lintandnpm run lint-fixif you don't want to install Standard ) - Make sure all tests pass and there are no issues when you run:
npm testandnpm run lint
npm run storybook - starts storybook on localhost:6006 This is the main way to preview the components. You make a component, add stories for it, and play around with it.
npm test - runs unit tests using Jest
npm run lint - runs the Standard JS linter
npm run lint-fix - runs Standard and tries to fix detected issues
npm run build - outputs minified, processed code into dist/index.js Use this to test the components like you would if you had installed the package from npm. i.e import { LoremText } from 'dist'
storybook-deploy - deploys storybook to gh-pages branch.