0.0.3 • Published 7 years ago

corilla-components v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Corilla React Components

A collection of React components used to build Corilla.

This is a work in progress as we look at migrating our components over to this repository.

At the moment this isn't usable but the ultimate goal is to make it easy for others to use these components (publish to npm etc).

Installation

npm install --save corilla-components

Usage

Use modularized corilla-components

  • Use babel-plugin-import (Recommended)

    // .babelrc
    {
      "plugins": [["import", { libraryName: "corilla-components", camel2DashComponentName: true }]]
    }

    Then you can import components from corilla-components directly.

    import { component } from 'corilla-components';
  • Manually import

    import { MarkdownPreview } from 'corilla-components/lib/MarkdownPreview'

Components

Versioning

  • npm run release-patch: minor bug fixes, extra documentation, etc. Does not add any new functionality.
  • npm run release-minor: new functionality & features
  • npm run release-major: backwards-incompatible changes, like if there is a significant rewrite / refactor. Not used very often.