ng new ng-mdx-remote --create-application=false
ng generate library ng-mdx-remote
Create this Files in projects/ng-mdx-remote/src/lib:
+ "ng-mdx-remote.module.ts"
+ "ng-mdx-remote.component.tsx"
+ "ng-mdx-remote.component.html"
+ "ng-mdx-remote.component.css"
+ "ng-mdx-remote.service.ts"
+ "ng-mdx-remote.interfaces.ts"
+ "ng-mdx-remote.types.ts"
Create NgMdxRemoteModule
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { NgMdxRemoteComponent } from './ng-mdx-remote.component';
import { NgMdxRemoteService } from './ng-mdx-remote.service';
@NgModule({
declarations: [NgMdxRemoteComponent],
imports: [CommonModule,HttpClientModule],
providers: [NgMdxRemoteService],
exports: [NgMdxRemoteComponent],
})
export class NgMdxRemoteModule {}
Update projects/ng-mdx-remote/src/public-api.ts
export * from './lib/ng-mdx-remote.component';
export * from './lib/ng-mdx-remote.service';
export * from './lib/ng-mdx-remote.interfaces';
export * from './lib/ng-mdx-remote.types';
export * from './lib/ng-mdx-remote.module';
Create The Library Components,Service,Interface,Types..etc what it Needs
ng build ng-mdx-remote
cd dist/ng-mdx-remote
npm pack
How to Release Code With Github
# npm install https://github.com/thisiseddy-ab/ng-mdx-remote/releases/download/tag-name/file-name.tgz
npm install https://github.com/thisiseddy-ab/ng-mdx-remote/releases/download/v0.0.1/ng-mdx-remote-0.0.1.tgz