An open API service indexing awesome lists of open source software.

https://github.com/michaelbe812/custom-angular-schematics


https://github.com/michaelbe812/custom-angular-schematics

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Ship Angular Schematics with library

A test for shipping angular schematics with a library

clone project
npm i
build the library and schematics: ng build my-lib && cd my-lib and npm run build:schematics

Output in the dist should be:
![dist](./docs/dist-structure.png)

Publish the library using verdaccio (publishconfig is already set in package.json in projects/my-lib)

## ng add
Afterwards you can install the lib on a new project and run the schematics: ng add @my-org/my-lib
this will execute the ng-add schematic and give following output
```
ℹ Using package manager: npm
✔ Found compatible package version: @my-org/[email protected].
✔ Package information loaded.

The package @my-org/[email protected] will be installed and executed.
Would you like to proceed? Yes
✔ Packages successfully installed.
✅️ Running ng-add for my-lib
✔ Packages installed successfully.
Nothing to be done.

```
## ng update
execute ng update @my-org/[email protected] to update the package to version 0.0.6
it will check the package.json and remove ngrx-store-freeze dependency if found