Indice extensions for Angular 2+
In order to add reference to an internal library from the sample application one must add a referece via
npm install "file://./dist/ng-auth"
this will add to the root package.json that is tied with the sample app named 'app' a local reference to @indice/ng-auth
like so:
"dependencies": {
//...
"@indice/ng-auth": "file:dist/ng-auth",
"@indice/ng-components": "file:dist/ng-components",
//...
},
- Declare component in NgModule declarations.
- Declare component in NgModule exports.
- Add component's path in public-api.ts file.
- Navigate to projects\ng-components\package.json and change the version number.
npm install
npm run build-components
- Navigate to dist\ng-components.
npm publish
- Navigate to projects\ng-components\package.json and change the version number.
npm install
npm run build-auth
- Navigate to dist\ng-auth.
npm publish
npm install
on repo root folder- Open new terminal and run
npm run start-mock-server
- Open new terminal and run
npm run start-app
- Voila! Changes on libraries reflect on sample project