0.25.0 • Published 3 years ago

@comatch/ui v0.25.0

Weekly downloads
34
License
-
Repository
-
Last release
3 years ago

:point_right: Live Storybook preview :point_left:

CircleCI

Description

This project contains all of our React core (UI) components to be re-used across our projects.

This project is setup with a minimalistic Webpack config to handle the build pipeline and Storybook to facilitate development.

A preview of all the components can be seen on the deployed version of our Storybook by clicking here.

Documentation

Contents

Setting up the project

To run this project, after cloning it, follow these steps:

  1. cd to the directory of the project.
  2. Run yarn install && yarn start

Making changes and creating a new release

When you need to make a change to comatch-ui, you should also update the docs/badges, increase the version, publish it and redeploy storybook. Follow these steps:

  1. Create a feature branch from develop with your changes, then run the following commands:
    • yarn generate-docs
    • yarn test-and-coverage
  2. Commit your changes, push again, get this reviewed and merge your branch.
  3. Checkout the develop branch and pull the updated changes.
  4. Create a new feature branch and run the following commands:
    • git push --set-upstream origin [branch name]
    • npm version major|minor|patch.
    • npm publish - which will publish the new version of the package to the public npm registry.
    • yarn deploy-storybook
  5. Finally, create a PR to develop and master, get this reviewed and merge it into both branches.

Structure of the project

All components in our UI library can be found under /src/core/ui/components.

Each component folder should have the following structure (e.g. for Button):

├── src/
    ├── index.js                    // Exports all components of the library
    └── components/
        └── Button/
            ├── index.js            // Exports the component for the file it's defined
            ├── Button.md           // Documentation of PropTypes in markdown
            ├── Button.js           // Component definition
            ├── Button.scss         // Styling
            ├── Button.test.js      // Unit tests
            └── Button.stories.js   // Stories for Storybook

PropTypes documentation

The PropTypes of all components of the library are documented in their respective folders, a list follows with links for quick access:

Component PropTypes

Container PropTypes

0.25.0

3 years ago

0.24.1

4 years ago

0.24.0

4 years ago

0.23.1

4 years ago

0.23.0

5 years ago

0.22.2

5 years ago

0.22.0

5 years ago

0.21.0

5 years ago

0.20.0

5 years ago

0.19.0

5 years ago

0.18.0

5 years ago

0.17.0

5 years ago

0.16.0

5 years ago

0.15.0

5 years ago

0.14.1

5 years ago

0.14.0

5 years ago

0.13.7

5 years ago

0.13.6

5 years ago

0.13.5

5 years ago

0.13.4

5 years ago

0.13.3

5 years ago

0.13.2

5 years ago

0.13.1

5 years ago

0.13.0

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago