Unbxd Javascript SDK for Analytics tracking
We are using yarn instead of npm to manage node modules. Use node version: v16.5.0
Install yarn, then:
$ yarn
$ yarn run test
$ yarn run start
Runs bundler output to dist
$ yarn run build
Runs with uglifier
$ yarn run dist
AWS credentials need to be set as ENV variables
$ yarn run dist:s3
add ENV
variable called SITENAME
which can be used as site name
$ SITENAME=unbxd yarn run build/dist/dist:s3
node unbxdAnalyticsGenerateEventConfigList.js
Staging: https://libraries-stage.unbxdapi.com/ua/test-uaLibrary.js Production: https://libraries.unbxdapi.com/ua/v<<version_number>>/uaLibrary.js