1.5.21 • Published 3 years ago

contentco-components v1.5.21

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

contentco-components

Shared components for Content.co platform

NPM JavaScript Style Guide

Installation in your packages

npm install --save git+https://github.com/boltmedia/contentco-components.git

or

yarn add git+https://github.com/boltmedia/contentco-components.git

If you are going to do active development on the components while testing it in the actual repo, you can also add the package locally:

yarn add file:../contentco-components

If you add it locally, ensure that you replace it with the Github package before commit it back to the repo.

Usage

import React, { Component } from 'react';

import { MyComponent } from 'contentco-components';

class Example extends Component {
  render() {
    return <MyComponent />;
  }
}

Development

  1. To get started you need to install both rollup and storybook
npx sb@6.0.28
yarn -D add rollup

# Installing as peer dependencies
yarn add -P classnames@2.2.6 prop-types@15.7.2 react@16.13.1 react-dom@16.13.1
  1. To add a new component, you can create it manually or use the built-in helper to generate the base files.
yarn generate [ComponentName]
  1. To test your components, I recommend using Storybook, which will rebuild on each change you make:
yarn storybook
  1. To generate a build for release, you can run:
yarn build

Notes

Fonts are included in the package but are not used in the components, only used for the Storybook previews. You should include the fonts in the actual project.

1.5.21

3 years ago

1.5.19

3 years ago

1.5.20

3 years ago

1.5.18

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.10

3 years ago

1.5.12

3 years ago

1.5.11

3 years ago

1.5.14

3 years ago

1.5.13

3 years ago

1.5.16

3 years ago

1.5.15

3 years ago

1.5.17

3 years ago

1.5.9

3 years ago

1.5.8

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.4.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.0.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago