@anise-health/angular-common v0.0.8
AngularCommon
This library was generated with Angular CLI version 12.1.0.
Code scaffolding
Run ng generate component component-name --project angular-common
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project angular-common
.
Note: Don't forget to add
--project angular-common
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build angular-common
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build angular-common
, go to the dist folder cd dist/angular-common
and run npm init --scope=anise-health
and npm publish --access public
.
Running unit tests
Run ng test angular-common
to execute the unit tests via Karma.
Using in application
import { AniseHealthCommonModule } from 'angular-common';
import { environment } from '../environments/environment';
@NgModule({
...,
imports: [
...
AppRoutingModule,
AniseHealthCommonModule.forRoot(environment)
],
...
})
In style sheet
@import '@anise-health/angular-common/styles/styles.scss';