@bode-canada/core
v1.0.228
Published
A Bode Core library created using Rollup
Maintainers
Readme
Installation
$ git clone [email protected]:bode-canada/bode-core.gitInstall all dependencies. Make sure you installed Nodejs.
$ npm install
# or
$ yarn installCommands
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-imageThen 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/masterwith 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-requestfrom 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
masterbranch - Pushing code to the unassigned task/branch
- Merging code without at least 2 approves

