@bode-canada/core
v1.0.193
Published
A Bode Core library created using Rollup
Downloads
630
Maintainers
Readme
Installation
$ git clone [email protected]:bode-canada/bode-core.git
Install all dependencies. Make sure you installed Nodejs.
$ npm install
# or
$ yarn install
Commands
Build
Run build
to build the library
Code style
Run eslint
to start checking typescript code-style errors
Run eslint-fix
to start checking typescript code-style and fix errors
Testing
Run test
to start unit-testing procedure
Supporting Image Imports
Add the following library to your component library @rollup/plugin-image:
$ npm i -D @rollup/plugin-image
Then add it to rollup-config.js
:
...
plugins:[
...,
image(),
...
]
...
You can then import and render images in your components like:
import logo from "./rollup.png";
export const ImageComponent = () => (
<div>
<img src={logo} />
</div>
);
###Icons
In case you need to add some icon or change the exising one, please use https://icomoon.io/app/#/select/font
Task lifecycle
- Create a branch from
origin/master
with the name consisting of ticket type and ticket name. For example, you have a feature task in JIRA with the name BSP-1989. New branch should be named likefeature/BSP-1989
. There are 3 types of task branch: feature, fix, improvement. - After finalizing task you should create
pull-request
from your task to theorigin/master
. - After fixing comments and getting at least 2 approves, merge the PR.
- In case of successful merge, delete your branch.
Deprecated activity
- Pushing code directly to the
master
branch - Pushing code to the unassigned task/branch
- Merging code without at least 2 approves