2.1.0 • Published 5 days ago

@gisce/powerp.js v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

PowERP.js

A TypeScript implementation for a PowERP client.

Install

For the moment you can install this library adding the specific git repository in your package.json dependencies, like this:

package.json

{
  // ...
  "dependencies": {
    // ...
    "powerp.js": "git://github.com/gisce/powerp.js.git#feature/typescript"
  }
}

Usage

import { Client } from "powerp.js";

// ...

const c = new Client({
    host: process.env.ERP_HOST!,
    database: process.env.ERP_DB!,
});

const token = await c.loginAndGetToken({
    user: process.env.ERP_USER!,
    password: process.env.ERP_PASSWORD!,
});

Running tests

First adjust your .env file in order to fulfill the proper host, database and auth details. You can get an example copy from .env.sample.

Then install the dependencies with:

$ npm install

And therefore you can run the tests using:

$ npm test

Publishing new versions of the library

If you make any changes in this library and want to use them in your project, you must build it in order to get the updated version:

$ npm run build

This will erase your dist/ folder and rebuild the library in it. You must push these updated dist/ files into git.

Then in your project you can simply:

$ npm update powerp.js

TODO

  Implement pending methods from the old version Improve the way to publish this library. NPM public registry?

2.1.0-rc.1

6 days ago

2.1.0

5 days ago

2.1.0-alpha.1

7 days ago

2.0.1-alpha.2

4 months ago

2.0.1-alpha.1

4 months ago

1.3.0

4 months ago

2.0.0

4 months ago

1.3.0-alpha.14

6 months ago

1.3.0-alpha.15

6 months ago

1.3.0-alpha.12

6 months ago

1.3.0-alpha.13

6 months ago

1.2.2

6 months ago

1.2.1

10 months ago

1.3.0-alpha.6

7 months ago

1.3.0-alpha.5

7 months ago

1.3.0-alpha.8

6 months ago

1.3.0-alpha.7

7 months ago

1.3.0-alpha.10

6 months ago

1.3.0-alpha.11

6 months ago

1.3.0-alpha.9

6 months ago

1.3.0-rc.2

9 months ago

1.3.0-rc.0

10 months ago

1.3.0-rc.1

9 months ago

1.3.0-alpha.2

7 months ago

1.3.0-alpha.1

7 months ago

1.3.0-alpha.4

7 months ago

1.3.0-alpha.3

7 months ago

1.2.1-rc.1

2 years ago

1.2.1-rc.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago