0.2.0 • Published 4 years ago

fa-design-system v0.2.0

Weekly downloads
10
License
Do No Harm
Repository
github
Last release
4 years ago

Scripts

  • npm run start:app: Starts the Create React App application, which enables local testing of our NPM-published component library.
  • npm run start:storybook: Runs an instance of Storybook, for easier component-driven development.
  • npm run test: Runs component tests using Enzyme and Jest.
  • npm run build:lib: Builds our component library using Rollup (anything inside src/lib/ into the dist folder)
  • npm run build:storybook: Generates static files and a storybook-static folder for external consumption of our design system. This will be continuously deployed through Netlify at design.forensic-architecture.org

Library building and testing with Rollup

Run npm run build:lib from the root folder — this will generate a dist/ folder, along with styles. Then, run:

cd dist/
npm link
cd ..
npm link design-system

to create an alias and be able to require components from the component library like so: import {Button} from 'design-system'. Test that this works on src/App.js.

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago