Skip to content

ferhoyos/core-ui

 
 

Repository files navigation

Kiali Core

Kiali Core badge

Coverage Status

Coverage lines Coverage functions Coverage branches Coverage statements

Development Setup

In order to work and test locally with Kiali core components you have to link the library with a UI application through yarn link.

Assuming your working directory tree is:

-- work
|- application-ui
|- core-ui

Before linking core-ui and types libraries, react and react-dom dependencies from application ui need to be linked to use same version in both places.

cd work/application-ui
# Install application-ui dependencies
yarn install

# Sometimes, yarn link is ignored because there is a link of same library in another place.
# In this case you have to unlink first with yarn unlink (https://github.com/yarnpkg/yarn/issues/7216)

cd work/application-ui/node_modules/react
# Create link for react
yarn link

cd work/application-ui/node_modules/react-dom
# Create link for react-dom
yarn link

Then core-ui library link is created and use react and react-dom links in the library.

# Install core-ui library dependencies
yarn install

cd work/core-ui/packages/core-ui
# Link react library
yarn link react

# Link react-dom library
yarn link react-dom

# Create link for core-ui
yarn link

cd work/core-ui/packages/types
# Create link for core-ui
yarn link

Finally use core-ui link in the application.

cd work/application-ui
# Link core-ui and types libraries
yarn link @kiali/core-ui
yarn link @kiali/types

After testing Kiali core components, you should remove the links:

cd work/application-ui
# Unlink core-ui and types libraries
yarn unlink @kiali/core-ui
yarn unlink @kiali/types

# Reinstalling application-ui dependencies
yarn install

cd work/core-ui/packages/core-ui
# Unlink react library
yarn unlink react

# Unlink react-dom library
yarn unlink react-dom

cd work/core-ui
# Reinstalling core-ui dependencies
yarn install

Semantic Commit Messages

We should set commit message with this format:

Format: <type>(<scope>): <subject>

<scope> is optional

Example

feat: add hat wobble
^--^  ^------------^
|     |
|     +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.

More Examples:

  • major: A new version with breaking changes
  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the user, not a fix to a build script)

Follow these instruction

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.8%
  • Other 1.2%