https://github.com/michaelbe812/custom-angular-schematics
https://github.com/michaelbe812/custom-angular-schematics
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaelbe812/custom-angular-schematics
- Owner: michaelbe812
- Created: 2024-04-16T12:51:28.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-17T06:02:32.000Z (about 1 year ago)
- Last Synced: 2025-02-15T13:48:24.983Z (3 months ago)
- Language: HTML
- Size: 197 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:schematicsOutput in the dist should be:
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