See the docs for more info.
npm run dev
bundles and serves the SDK on: http://localhost:3002/spresso.sdk.tracking.web.js
.
npm run dev:prod-mode
does the same but as if NODE_ENV === 'production'
, i.e., no sourcemap and logging in browser console.
- Create branch from
main
intofeature/SPRS-XXXX
. - Test locally on webapp by changing the script
src
incomponents/misc/spresso-web-sdk
to:
http://localhost:3002/spresso.sdk.tracking.web.js
npm run docs
will build the docs locally in watch mode.- Open
./docs/index.html
in your browser.
- PR feature branch to
staging
. - Push/merge to
staging
branch to build/upload script to staging Spresso GCP bucket, nested under the folder named the last commit hash pushed tostaging
.
- Update the version in
package.json
. - PR
staging
branch tomain
. - Push/merge to
main
branch will NOT build/upload script. - Create a new release tag (must equal the
package.json
version) onmain
to build/upload script to production Spresso GCP bucket, nested under the folder named the release version. - A new release tag will also re-publish the docs.
Spresso, [email protected]
Spresso Web Event SDK is available under the MIT license. See the LICENSE file for more info.