0.0.1 • Published 2 years ago
foa-design-system-package v0.0.1
FoaDesignSystemPackage
This library was generated with Angular CLI version 12.0.5.
Code scaffolding
Run ng generate component component-name --project foa-design-system-package
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project foa-design-system-package
.
Note: Don't forget to add
--project foa-design-system-package
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build foa-design-system-package
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build foa-design-system-package
, go to the dist folder cd dist/foa-design-system-package
and run npm publish
.
Setup & Install Package:
- Add .npmrc file to project's root folder
- Add below lines
registry=https://financeofamerica.pkgs.visualstudio.com/_packaging/FOADesignSystem/npm/registry/ always-auth=true
- Run command to complete authentication process
vsts-npm-auth -config .npmrc
- Install Package
npm install <package name>@<version>
Setup token refresh in package.json file
- Open package.json of the project and add below line in scripts section
“scripts”: {“refreshVSToken” : “vsts-npm-auth -config .npmrc”}
- Run below command to reauthenticate token
npm run refreshVSToken