arv-packages
v0.0.0
Published
Core Module was generated by [Angular library](https://angular.io/guide/creating-libraries). It contains all shared component to our applications like components, intercepters, custom validators, services and more..
Downloads
1
Readme
ARV Core
Core Module was generated by Angular library. It contains all shared component to our applications like components, intercepters, custom validators, services and more..
First time setup
Runs following commands to setup your computer to asknowledges the private npm:
Run
npm config set '@cloud_arv:registry' https://gitlab.com/api/v4/projects/29666523/packages/npm/
and
npm config set -- '//gitlab.com/api/v4/projects/29666523/packages/npm/:_authToken' "YOUR-PERSONAL-TOKEN"
then
npm install
npm run build:core
When building successfully, now you are ready to play around.
How to play around
npm run build:core
npm run start:demo
Currenly, we are hosting a simple demo application, but we are creating Storybook as sandbox tool.
Adding new component
Go to src/lib/components
folder, and type following command
ng generate component <NEW-COMPONENT | NEW-SERVICE | NEW-INTERCEPTER>
then update index.ts
file in corresponding components folder
Building the new changes
For any change in Core module
need to build to make sure all dependencies are compliled and ready to use for applications
npm run build:core
The artifact will appeared in dist
folder.
Publishing package
We have set up CI/CD pipline, you only need to commit your code. It will take 5 minutes for building and deploying.
But you can manually release by runnung
npm run publish:core
Usage
Once package has been published, To install library in the application.
Run
npm i @cloud_arv/core