@eyepop.ai/javascript-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published
eyepop-logo

EyePop Javascript SDK

node version pkg version

Usage in a project

  • Because this is a private package, make sure you have an .npmrc in the root of the project with the following line: //registry.npmjs.org/:_authToken=${EYEPOP_NPM_TOKEN}. Where EYEPOP_NPM_TOKEN is either an env var exported in your shell (e.g. export EYEPOP_NPM_TOKEN=<token>) or pasted directly into the file. Please note: The .npmrc file could be in version control. Make sure you don't commit your token!
  • In the project you'd like to install the package, run npm install @eyepop.ai/javascript-sdk
  • Import into your project import EyePopSDK from '@eyepop.ai/javascript-sdk'

Development

Using npm as package manager

  • Install development dependencies: npm install
  • Build the module: npm run build
  • Clean the dist folder: npm run clean
  • Clean and then build: npm run build:clean
  • Link a local client to the project: npm link ../<project>. This will add a linked folder to that projects' node_modules. You won't see it in your package.json
  • Run the example page to test your changes live: npm run dev
  • Start the compiler in watch mode only. It will hot reload on changes: npm run watch
  • See package.json for other helpful scripts.

Publishing a new version

  • Login to npm with npm login
  • Tag the release and update the version property of your package.json. i.e:
...
{
  "version": "1.0.0"
}
...

becomes:

...
{
  "version": "1.0.1"
}
...

Automatic publish via github actions

  • Push your changes to the main branch
  • Create a new release in github. (on the right side of the repo, click Releases then Draft a new release)
  • Click Tags and enter the version number you want to publish. e.g. 1.0.1 (create a new tag if it doesn't exist)
  • Click Publish release
  • Github actions will automatically build and publish the package to npm

Manual publish

  • Commit your changes and publish to the npm registry with npm publish
  • Optionally, you might add a beta tag with the option npm publish --tag beta This will append -beta to the version number. e.g.: 1.0.1-beta
  • By default, a consumer of this library will always pull the the latest published version regardless of the tag when running npm install. You might have occasion to work with multiple tags. In that case, you can specify the tag when installing the package. e.g. npm install @eyepop.ai/javascript-sdk1.0.1-@beta
  • See the notes about semantic versioning below

Links

Readme

Keywords

none

Package Sidebar

Install

npm i @eyepop.ai/javascript-sdk

Weekly Downloads

0

Version

0.1.10

License

UNLICENSED

Unpacked Size

3.68 MB

Total Files

56

Last publish

Collaborators

  • tschulz_ep
  • andy_eyepop.ai