ctia-ui-test v0.0.4
CTIA UI Library
Let's make things easy (and beautiful :sparkling_heart:)
Supported components
- Bubble
- Buttons:
- ActionButton
- DeleteButton
- DownloadButton
- LoaderButton
- Checklist
- Divider
- Icons:
- IconAwesome
- IconBase
- IconLabel
- InfoBar (WellInfo previously)
- InlineDatepicker
- InlinePreloader
- Labels:
- ContinueLabel
- NoData
- Pager
- PagerPageSize
- PagerStatusFilter
- Preloader
- Switcher
- Tooltip:
- TooltipBase
- TooltipIcon
- UploadInstructions
- WithModal
Build new version
Install dependencies with yarn install
or npm install
.
yarn build
then yarn build:docs
To test locally import your components inside src/docs/index.js
then use components inside render method.
Then run yarn start
. Your web-server will be run on http://localhost:1234
.
Integration with other projects
To add the UI library for a first time:
npm i ctia-ui
or yarn add ctia-ui
To upgrade the current version:
npm update ctia-ui
or yarn upgrade ctia-ui
Upgrade UI Library version
When time to update library comes (new components added or improved), follow next steps to update the library version.
- Be sure that your code is well tested, then commit it
- Increase verion number inside
package.json
and commit this change - Build new version and commit results (
TODO: add gitlab worker to build new version
) - Update related projects (
yarn upgrade ctia-ui
ornpm update ctia-ui
)
Shell script draft (building automation process)
Input params:
- commit message (string)
- release type (oneOf: 'patch','major','minor')
Patch example: 1.0.1 -> 1.0.2 (Increment the third digit) Minor example: 1.0.12 -> 1.1.0 (Increment the middle digit and reset last digit to zero) Major example: 1.3.54 -> 2.0.0 (Increment the first digit and reset middle and last digits to zero)
Details: https://docs.npmjs.com/about-semantic-versioning
Script flow:
- run build and then build:docs command
- commit and push changes to git (need to ask comment message as a param)
- change package version (
npm version <update_type>
, seerelease type
input param) - publish changes to npm (
npm publish
)