https://evotor.github.io/Evo-UI-Kit/
To install this package run following command:
npm i @evotor-dev/ui-kit
Add ui-kit styles to angular.json
Add ui-kit assets to angular.json
"assets": [
//...
{
"glob": "**/*",
"input": "./node_modules/@evotor-dev/ui-kit/assets/",
"output": "/assets/ui-kit/" // if you use a different output path, register it using evoAssetsPathProvider
},
// The ui kit uses icons from https://github.com/evotor/evo-icons, so you need to register the icons in angular.json of your project:
{
"glob": "**/*",
"input": "./node_modules/@evotor-dev/evo-icons/dist/monochrome",
"output": "/assets/ui-kit/icons"
},
{
"glob": "**/*",
"input": "./node_modules/@evotor-dev/evo-icons/dist/color",
"output": "/assets/ui-kit/color-icons"
}
//...
]The icons live in a separate repository evo-icons and the ui-kit refers to them as peer dependencies, so you need to install the icon library in your project: npm i @evotor-dev/evo-icons
If you have password on your ssh key, add it to ssh-agent.
If you have renamed your ssh key, add it to ssh-config.
Host github.com
IdentityFile ~/.ssh/{yourKey}
npm ci
Note: evo-icons must be devDependency in order not to be included in the build output. Also, do not include them as assets in the angular.json for build.
npm run storybook
Run npm run build to build the ui kit. The build artifacts will be stored in the dist/ directory.
npm run build:storybook
- Install package as devDependency at root project folder
- Add package to projects/evo-ui-kit/package.json to peerDependencies
- Add package to projects/evo-ui-kit/package.json to dependencies
- Add package to projects/evo-ui-kit/ng-package.json to allowedNonPeerDependencies
- Add package to projects/evo-ui-kit/ng-package.prod.json to allowedNonPeerDependencies
Run npm run test:local.