1.0.0 • Published 1 year ago
zipy-test-init v1.0.0
To install the dependencies -
// Install dependencies -
npm install
// Generate SDK script file
npm run build
To invoke the sdk into project use the following steps -
<script src="<sdk-url>"></script>
<script>
window.zipy.init("<sdk-key>"); //should be a string inside double quotes
</script>
Changes need to do for dev build -
Changes in config.json
Replace streamMgrUrl with - "https://servicesdev.zipy.ai/sdk-session-manager/v2/enduser-info",
Replace registerSessionUrl with - "https://servicesdev.zipy.ai/sdk-session-manager/v1/register-sdk-session"
Replace ignoreEmptyErros with - false
Changes in sdk-config.json
Replace streamUrl with - "https://devcollector.zipy.ai"
Changes need to do for staging build -
Changes in config.json
- Replace streamMgrUrl with - "https://servicesqa.zipy.ai/sdk-session-manager/v2/enduser-info",
- Replace registerSessionUrl with - "https://servicesqa.zipy.ai/sdk-session-manager/v1/register-sdk-session"
- Replace sessionLinkUrl with - "https://appqa.zipy.ai"
- Replace ignoreEmptyErros with - false
Changes in sdk-config.json
- Replace streamUrl with - "https://qacollector.zipy.ai"
How to publish sdk in GCP Bucket -
Note: 1. Make sure you have install brotli
, we are using it compress the build files
2. While releasing npm package, make sure you change isNPM
to true
in config.json
- Run
npm run build
- brotli -k dist/zipy.min.umd.js
- cp dist/zipy.min.umd.js.br dist/zipy.min.umd.js
- Open bucket in which we have to upload SDK (create version folder first if not exist)
- Create changelog.txt, update the file with release changes and upload to a bucket.
- Upload SDK and map file in buckets (newly generated in the root folder:
./zipy.min.umd.js
) - Change edit metadata of SDK, enter
content-encoding
tobr
- Change edit metadata of SDK, enter
cache-control
topublic, max-age=3600
1.0.0
1 year ago