@edgeiq/edgeiq-api-js
v1.9.4
Published
This project presents EdgeIQ API SDK.
Downloads
521
Readme
Description
An SDK Wrapper to use EdgeIQ API We will be using:
- Typescript
- Axios
- Jest
- Prettier
Requirements
- Node
Initial Setup
Just install the packages needed
$ npm install
Available Commands
- Building:
$ npm run build
- Linting:
$ npm run lint
- Formatting:
$ npm run format
- Testing
$ npm test
- Testing single test file
$ npm test src/__tests__/<file_name>
- To test the version locally before publishing:
. In the
edgeiq-api-js
local copy runyarn link
. In the project local copy, where it is needed to install this version (eiq30
fro example), runyarn link @edgeiq/edgeiq-api-js
. This will “connect” the two repositories (via a symlink), sonode_modules/@edgeiq/edgeiq-api-js
actually points to your local copy. . You can then runyarn build
inedgeiq-api-js
andeiq30
will pick up the changes you did locally, so no need to publish a new SDK to test something . These commadns will change theyarn.lock
andpackage.json
of the project where the sdk is being usedeiq30
, to revert that runyarn unlink @edgeiq/edgeiq-api-js
Publishing:
Run:
$ npm publish
How to use it
- Install the dependency via the command line.
npm install --save @edgeiq/edgeiq-api-js
OR
yarn add @edgeiq/edgeiq-api-js
This will install the latest version in npm