evotor-ui-kit
v5.81.1
Published
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.3.
Downloads
4
Readme
evotor-ui-kit
This project was generated with Angular CLI version 6.0.3.
Installation
To install this package run following command:
yarn add evotor-ui-kit
Add to styles in angular.json
"styles": [
...
"node_modules/evotor-ui-kit/styles/main.scss",
...
],
Add fonts from Google Fonts
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700&subset=cyrillic-ext" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,400i,500,500i,700&subset=cyrillic,cyrillic-ext" rel="stylesheet">
Package publishing
- Merge PR to
master
git checkout master && git pull
GH_TOKEN=<your_github_token> yarn release
- update package version in
./projects/evo-ui-kit/package.json
git add -p && git commit -m 'chore(evo-ui-kit): version up'
git push origin
Troubleshooting
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}
Storybook
Run server
yarn run build:evo-ui-kit
yarn run storybook
Build
yarn run build:evo-ui-kit
yarn run build:storybook
Development
Build library
Run yarn run build:evo-ui-kit
to build the ui kit. The build artifacts will be stored in the dist/
directory.
Add dependencies
- 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 whitelistedNonPeerDependencies
- Add package to projects/evo-ui-kit/ng-package.prod.json to whitelistedNonPeerDependencies
Publish changes
git add -f dist
git commit -m 'commit message'
git push
git subtree push --prefix dist/evo-ui-kit origin deploy
Build sample web app
Build ui kit library and install styles. Run yarn build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Development server
Build ui kit library and install styles. Run yarn start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Code scaffolding
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Code scaffolding for library
Run ng generate component --project evo-ui-kit component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project evo-ui-kit
.
Running unit tests
Run ng test
to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e
to execute the end-to-end tests via Protractor.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
To get more help on the libraries go check out the Angular CLI WIKI.