joelhooks / egghead-io-styleguide

A "living styleguide" for egghead.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

egghead.io Style Guide

This repo has two purposes:


Usage

$ yarn add 'egghead-ui'`
import {ComponentName} from 'egghead-ui'

View the storybook for visual examples and full API documentation.


Development

Dependencies

  • Git
  • Node
  • Yarn

Workflow

  • yarn to install latest packages.
  • yarn dev to develop (runs storybook, lints, and compiles).
  • localhost:2000 to view storybook.
  • src/components/ComponentName:
    • index.js defines and exports a component.
      • Styling is done using classes from tachyons-egghead
      • The *-ns (not small) classes are used to apply anything specific to non-mobile screen sizes, so that all components are built mobile-first.
    • index.examples.js adds component to storybook.
      • .addWithInfo adds automatic API documentation.
      • .addWithPropCombinations adds automatic prop combinations.
  • src/index.js imports all src/components and exports component library for npm.
  • Submit pull requests:
    • Runs continuous integration in Codeship to ensure builds succeed
    • Joel reviews and merges
    • Continuous deployment runs in Codeship
      • Publishes the latest component library version to npm.
      • Deploys the latest storybook to ui.egghead.io.

About

A "living styleguide" for egghead.io


Languages

Language:HTML 51.7%Language:CSS 43.0%Language:JavaScript 5.3%