The Morningstar Visualization Library is a collection of example web components that demonstrate how data returned by Dynamic Services APIs can be rendered for use in front-end applications.
Use node version 16.13.2, Since this version has npm(8.1.2) which works fine and later version has issues
yarn install
yarn storybook
yarn serve
yarn build
yarn test:unit
yarn lint
Below command would help to generate a component and it's corresponding story and it allows to generate component like a generic and table components.
yarn add-component
If you are sure about the type of component to generate you can simply provide it as a parameter to the add-component command to skip some questions.
yarn add-component Generic
yarn add-component Table
Commit messages must be in a standard format.
change-type(package): JIRA-REF, description
- use this format when making changes to packages, e.g.- major(button): ECCORECS-12345, breaking change
- minor(input): ECCORECS-12345, new functionality hidden by default
- patch(pagination): ECCORECS-12345, bug fix
- chore(data-table): ECCORECS-12345, clean up with no change to functionality
Update config file
- use this message when updating a top-level file, e.g. .gitignore or .editorconfigUpdate readme
- use this message when updating the top-level readme.md
Please note that only a single package may be updated in a commit, though multiple packages can be updated in a PR.
If you need to make follow-up changes once a PR is reviewed do one of the following:
- if you are confident using git, rewrite the history in your feature branch and update the PR to make all the changes in a single commit
- use the same or a lesser
change-type
for subsequent commits, e.g. if the main commit isminor
a follow-up commit can be classed asminor
,patch
orchore
Change types mostly follow the semver standard (https://semver.org/):
major
- a breaking change, includes changes to the UIminor
- new functionality added in a backwards-compatible mannerpatch
- a backwards-compatible bug fixchore
- code clean up without any change to functionality, e.g. formatting or linting
Currently we have two branches
- Develop
- Used for development
- When pull request is merged below job is triggered which generate the latest story book and is pushed to S3 bucket
- S3 bucket hosts the static resource can be access using the below url
- Master
- This will be the production branch
- We will sync up with develop branch for publishing final changes.
Morningstar Visualization Library is licensed under the Apache License 2.0. Details can be found in the LICENSE file.