umich-lib-ui v0.0.0
University of Michigan Library Design System
A collection of shared design styles, components, and patterns for teams to build quality consistent interfaces. A bit like a LEGO kit.
npm install @umich-lib/coreContributing
Getting started
This project uses:
- Lerna to manage multiple packages/libraries.
- Storybook for a development environment.
- Gatsby v2 for a fast website.
Run these commands before doing anything else.
git clone https://github.com/mlibrary/umich-lib-ui.git
cd umich-lib-ui
npm installāØļø Development
Starts the Storybook development environment at http://localhost:9001 and opens the documentation site at http://localhost:8000.
npm run bootstrap
npm run build:watch
npm run storybookWhat's going on with these commands?
npm run bootstraptells Lerna to optimize package dependencies and hoists common packages to the root. It will also symlink local packages that depend on each other.npm run build:watchbuilds the packages with babel so that they can be consumed by the documentation website and published to NPM.npm run storybookStarts the Storybook development environment.
Documentation site
Start the doc site locally. Built with Gatsby v2 for a fast website.
cd packages/docs
npm run developBe sure to run commands from the docs package directory.
š¦ Publishing
ā An NPM account with the umich-lib-ui organization is required to publish. Only core-contributors are able to publish versions. Contact the core team to get help setting this up.
Before anything else
Create a build to be published
npm run buildMake sure you're logged into the NPM registry.
npm loginPublish options
1. Canary
To publish a quick canary version
npm run publish:canary2. Next
To publish a next version.
npm run publish:next3. Publish
To publish an official version and follow Lerna publish prompts.
npm run publishExport Components to Sketch
We use story2sketch library to handle turning our Storybook stories into almost Sketch. See the story2sketch repo for more info.
Make sure Storybook is active before running this command.
npm run sketchThis enables designers to use Design System components in Sketch.
š Help / Questions
Open a GitHub issue.
PRs and contribution guidelines
6 years ago