Whyline Toolkit
To run this library follow this steps
Make sure your project has this dependencies:
"@angular/core": "^7.1.0"
"@angular/material": "^7.0.2"
Run the following command
npm install whyline-toolkit
Import the services/components you want to use in
app.module.ts
file:import { NotificationService } from 'whyline-toolkit';; . . . @NgModule({ . . . providers: [ NotificationService ], })
Import styles in your styles.less file:
@import './node_modules/whyline-toolkit/lib/styles/styles.less';
To update this library follow this steps
Make your changes and run
npm run packagr
inside the toolkit folder. This will generate adist/whyline-toolkit
folder with your new changes.Log in in npm
npm login
Run
npm publish dist/whyline-toolkit