@vendasta/sales-shared-components v0.1.5
Sales Shared Components
This directory contains components, services and other objects that are published for use outside of SSC.
Warning
None of the code in this directory should refer to anything outside of this directory. Doing so will cause the library to be unpublishable.
Updating dependencies
The dependencies listed in this sub-project's package.json
should use the
same versions as the outer SSC app whenever possible.
If changes are made to these dependencies, remember to update the package-lock file in this sub-project so that our CI processes can run correctly.
(cd sales-shared; npm install)
Making changes to the library and testing them in another local project
There is an NPM script that can be used to pack up this lib
npm run packForLocal
The resulting tar file can be installed in the other project:
npm i -s <THIS DIRECTORY>/vendasta-sales-shared-components-1.y.z.tgz
Note: CSS Changes
If you make changes to the SCSS files in sales-shared, you may need to restart the target application after installing sales-shared in it. Angular sometimes fails to load CSS changes.
Testing the build
You can simulate the cloud build locally. Make sure you first
install cloud-build-local
.
cd <project root>
cloud-build-local --config=build/cloudbuild-frontend-branch.yaml --dryrun=false .