npm install ng-portbase-commonsTo install this library, run:
``bash`
$ npm install ng-portbase-commons --save
Once you have published your library to npm, you can import your library in any Angular application by running:
`bash`
$ npm install ng-portbase-commons
and then from your Angular AppModule:
`typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { PortbaseCommonsModule } from 'ng-portbase-commons';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify library as an import
PortbaseCommonsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
`
To generate all .js, .js.map and *.d.ts files:
`bash`
$ npm run tsc
To lint all *.ts files:
`bash``
$ npm run lint
MIT © Ali Kelleci