Package Exports
- @ecomplus/client
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ecomplus/client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ecomplus-client
JS client for E-Com Plus REST APIs
Usage
TL;DR: We have methods to run requests for almost all E-Com Plus APIs, but you're probably searching for Store API.
The @ecomplus/client
package provides a
list of methods,
each one is a function to request a specific E-Com Plus REST API,
using axios HTTP client
and returning a
Promise.
It's available for both Node.js and browser environments.
Dependencies
It requires and doesn't include
axios
and
@ecomplus/utils
.
It'll be automatically imported if you're developing on Node.js environment or using a bundler such as Webpack, in other case those libraries must be included manually on window scope.
Development
We're using Conventional Commits, all commit messages must follow these conventions.
For documentation, we're using jsdoc, all methods should be well documented.
Contributing
Fork the repository;
Create a new branch with the name of your proposal;
Clone the repository:
git clone git@github.com:{user}/ecomplus-client.git
- Move to folder and install dependencies:
cd ecomplus-client
npm i
- Run dev server and use global
ecomClient
or edittest/demo.js
for tests on http://localhost:9245/:
npm run serve
Commit changes following Conventional Commits;
Create a new PR describing your proposal :)
Deploy
Take a look on package.json
scripts:
npm run doc
- Update jsdoc/docdash generated documentation;npm run release
- Generate changelog and new version;