# ng-comp-lib

> This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.4.

Latest version **1.1.0** (published 2019-02-21) · 0 weekly downloads

## Install

```sh
npm install ng-comp-lib
pnpm add ng-comp-lib
yarn add ng-comp-lib
bun add ng-comp-lib
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-02-21 |
| First published | 2019-02-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 13 |
| Unpacked size | 39.3 KB |
| Known vulnerabilities | 0 (+21 in 3 direct dependencies) |
| Install scripts | no |
| Maintainers | sumegha |

## Links

- npm: https://www.npmjs.com/package/ng-comp-lib
- npm.io page: https://npm.io/package/ng-comp-lib

## Dependencies (13)

- [rxjs](https://npm.io/package/rxjs.md) ~6.3.3
- [tslib](https://npm.io/package/tslib.md) ^1.9.0
- [core-js](https://npm.io/package/core-js.md) ^2.5.4
- [tsickle](https://npm.io/package/tsickle.md) ^0.34.3
- [zone.js](https://npm.io/package/zone.js.md) ~0.8.26
- [@angular/core](https://npm.io/package/@angular/core.md) ~7.1.0
- [@angular/forms](https://npm.io/package/@angular/forms.md) ~7.1.0
- [@angular/common](https://npm.io/package/@angular/common.md) ~7.1.0
- [@angular/router](https://npm.io/package/@angular/router.md) ~7.1.0
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ~7.1.0
- [@angular/animations](https://npm.io/package/@angular/animations.md) ^7.1.4
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) ~7.1.0
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) ~7.1.0

## Recent versions

- 1.1.0 (latest) — 2019-02-21
- 1.0.0 — 2019-02-21

## README

# NgCompLib

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.4.

## 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 component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

--------------------------------------------------------------------------
Steps to create local package :

Steps to create new npm library : 

Install CLI :

npm install @angular/cli -g


Create new component library project folder.

ng new my-component-library


1. Create a feature module

ng g m Samp


2. create the component

ng g c Simple


Simple.component.css
Simple.component.html
Simple.component.spec.ts
Simple.component.ts

Simple.component.html

<div class="footer">
  <p>Nitor Infotech</p>
 </div>

3.Export our component from our module

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SimpComponent } from '../simp/simp.component';

@NgModule({
  declarations: [SimpComponent],
  imports: [
    CommonModule
  ],
  exports: [SimpComponent]
})
export class SampModule { }

4. Run npm install ng-packagr --save-dev


5. we’ll need to add two files to our project, 

ng-package.json and public_api.ts.


6.ng-package.json:

{
  "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
  "lib": {
    "entryFile": "public_api.ts"
  }
}


7.public_api.ts

---
_Source: https://npm.io/package/ng-comp-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
