## Infinity UI Library

[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/b-yond/Agility%2Finfinity-ui-lib-build?type=cf-1&key=eyJhbGciOiJIUzI1NiJ9.NWUyYjU2MWIzMDlkMDA4OTQwNTBmOWYy.jxCyFEdz5DSqX7et0KjeeGpz5u5d6UP3SIwfj6xaFDY)]( https://g.codefresh.io/pipelines/edit/new/builds?id=5f5909bbdfcfb260b0d6e7c7&pipeline=infinity-ui-lib-build&projects=Agility&projectId=5eac892f37d7c8d6544b6f53)

[![codecov](https://codecov.io/gh/b-yond-infinite-network/infinity-ui-lib/branch/master/graph/badge.svg?token=csEA5ZtkrY)](https://codecov.io/gh/b-yond-infinite-network/infinity-ui-lib)

[Live Demo](http://35.245.59.11/)

## Component Structure & process to add new component

1. Components -> new component Name
2. .stories.js file for stories
3. .test.js file to test renderer
4. Components/v1 -> for next-ui

## Install (assuming you are inside lib directory)

```javascript
 npm i
```

## Run (Local)

```javascript
npm run storybook
```

## Publish

Travis will publish it for you once you commit/merge to master.

```
bash .travis-build.sh
bash run.sh
```

## Release

> Note: Package.json version is set to `0.0.0-semantically-released` since release is been managed by semantic-release

### Commit message type

```feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing or correcting existing tests
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
```

### Easy way to do conventional commit

`npm run commit`

## Run Components (Docker)

> from parent dir run following command, to build docker image

`docker build -t test -f ./infra/docker/Dockerfile ./lib`

> to run

`docker run -p 80:80 test`
