1.0.0 • Published 7 months ago

intellect-authentication-module v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

IntellectAuthenticationModule

This project was generated with Angular CLI version 1.6.8.

Installation

yarn add "@igtb-digital/intellect-authentication-module"

Usage

In App Routing module import AuthenticationModule

import { IntellectAuthenticationModule } from '@igtb-digital/intellect-authentication-module';

const ROUTES: Routes = [

  { path: '', loadChildren: () => IntellectAuthenticationModule },
  { path: '**', component: IntellectAppPageNotFoundPageComponent }

];

@NgModule({
  exports: [RouterModule],
  imports: [RouterModule.forRoot(ROUTES)],
})
export class IntellectAppRoutingModule { }

Development server

Run ng serve 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 --app=authentication component component-name to generate a new component in app module. You can also use ng generate --app=authentication directive|pipe|service|class|guard|interface|enum|module.

Build Module

Run npm run build:module to build the module. The build artifacts will be stored in the modules/intellect-authentication-module/dist/ directory.

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.

Publish Module

  1. Run npm run release-* "*" can be major|minor|patch|beta|alpha based on changes
  2. build the module using npm run build:module
  3. git push and publish to npm npm run publish

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.