2.5.0 • Published 9 years ago
egghead-ui-test v2.5.0
egghead-ui
This repo has two purposes:
- A living style guide app with documentation, published on styleguide.egghead.io
- A component library, pubished on npm
Usage
$ yarn add 'egghead-ui'`import {ComponentName} from 'egghead-ui'View the style guide for visual examples and component documentation.
Development
Dependencies
- Git
- Node
- Yarn
Workflow
- create feature branch off of master
yarnto install latest packagesyarn dev:styleguideto develop using the style guideyarn dev:libraryto develop the library- localhost:2000 to view the style guide
- use
yarn linkto test using library components in another project - bump the
versioninpackage.jsonusing Semantic Versioning - submit a pull request for feature branch to master
- once continuous integration passes and there is an approved review, merge the pull request
- continuous deployment runs in Codeship and deploys the latest style guide app to styleguide.egghead.io and then updates the library to a new version and publishes it on npm
- notify consumers to run
yarn add egghead-ui@latestin their projects to get latest, with a list of changes
Folders and files
src/components/ComponentName:index.jsdefines and exports a component.- Styling is done using classes from tachyons-egghead wherever possible. Otherwise, inline style objects are used.
- The
*-ns(not small) Tachyons classes are used to apply anything specific to non-mobile screen sizes, so that all components are built mobile-first.
index.examples.jsadds component to the style guide..addWithInfoadds automatic API documentation..addWithPropCombinationsadds automatic prop combinations.
src/index.jsimports allsrc/componentsand exports the component library for npm.buildis the folder that is generated for the style guide applibis the folder that is generated for the component library
Known Issues
devDependenciesdon't install on heroku. All deps need to be in thedependenciesobject.
2.5.0
9 years ago