- You can publish manually:
- After made changes in the library you need to build new version, pack and deploy it to artifactory.
- Install all dependencies from project hekate-artifactory.
- Run script from package json:
- Update version of Ui-kit library in the package.json
- Run
npm run ui-kit:lib-build
- After build
npm run ui-kit:lib-pack
- After this command will be created archive with version of library
ui-kit-X.XX.X.tgz
. Publish to artifactory from the folder with archive:- Authentication for Artifactory (need once)
- Go to the directory where the archive was generated, for example
hekate-artifactory/libs/ui-kit/dest/ui-kit
- run command
npm publish ui-kit-X.XX.X.tgz
- Also, you can check package in the artifactory-packages
- Or in automatic mode
- Open terminal in the
hekate-artifactory
folder - Execute command
npm run ui-kit:publish
- Open terminal in the
-
$fa-text-h1-font: 600 14px 'Roboto', sans-serif;
$fa-text-h2-font: 500 18px 'Roboto', sans-serif;
$fa-text-h3-font: 500 18px 'Roboto', sans-serif;
$fa-text-h4-font: 500 14px 'Roboto', sans-serif; -
$newTheme: map-merge($vqo-mb-theme, (
#{$--vq8-text-h1-font}: #{$fa-text-h1-font},
#{$--vq8-text-h2-font}: #{$fa-text-h2-font},
#{$--vq8-text-h3-font}: #{$fa-text-h3-font},
#{$--vq8-text-h4-font}: #{$fa-text-h4-font},
));
- copy
icon_name.svg
to directoryhekate-artifactory/libs/ui-kit/src/lib/ui/icons/svg
- run script
generate-icons
To check added icon you need run scriptstorybook:serve
and openIcons Preview
page.
-
cd hekate-artifactory\builds\build-icon-flags
; node index.js
- Then will be generated
sprite-flag.svg
file in thelibs/ui-kit/src/assets/icons/flags
-
cd hekate-artifactory
; npm run ui-kit:build-watch
cd hekate-artifactory/libs/ui-kit/dist
- Run
npm link
- Then go
cd hekate-aurora
- Need to check
hekate-aurora/apps/aurora/project.json
cli.cache.enabled
should befalse
- Run
npm link @hekate/ui-kit
- Also, don't forget to do
npm unlink @hekate/ui-kit
when you're done.