1.0.3 • Published 2 years ago
@hyperengage/sdk-js v1.0.3
Hyperengage JavaScript SDK (hyperengage-js)
Maintainers Guide
This section is indented only for package maintainers.
Building and local debug
- ATTENTION: Use
yarnfor everything except publishing - To spin off a local development server run
yarn devserver, then open http://localhost:8081- The server listens to all changes to src and rebuilds npm and
lib.jsautomatically. Open test cases HTML files to see hyperengage in action- http://localhost:8081/test-case/embed.html - embedded Hyperengage
- http://localhost:8081/test-case/embed-no-init.html - Hyperengage without automatic initialization
- http://localhost:8081/test-case/segment-intercept.html - test segment interception
- The server listens to all changes to src and rebuilds npm and
yarn testruns Playwright testyarn buildbuilds both npm package andlib.jsbrowser bundlenpm publish --publicto publish the package (change version inpackage.jsonmanually). You need to runnpm loginwith your personal npmjs account beforehand (make sure you have access to Hyperengage team)
Publishing new version
- Login with your personal credentials with
npm login - Run
yarn install && yarn build && yarn test && npm publish --access public