0.11.3 • Published 5 years ago

clever-client v0.11.3

Weekly downloads
4
License
BSD
Repository
-
Last release
5 years ago

clever-client

JavaScript client for Clever-Cloud API.

How to build

First you need to install the npm dependencies:

npm install

Then you need to run the npm script build and provide the API endpoint you want to use:

API_BASE_URL="https://api.clever-cloud.com/v2" npm run build

This will build a two bundles (non-minified and minified) in dist: clever-client.js and clever-client.min.js. Those bundles can be used with node.js or in a browser environment.

How to release

Once you've built a client, you can create a release and publish it on npmjs.com.

To create a new release, you need to update package.json and package-lock.json with the new version, create a commit and add a git tag. This can be done with this command:

npm version minor

NOTE: Most of the time, you need to update the client because the API changed. For this kind of cases a minor update will be OK. If a minor update is not what you're looking for, you can check the other options of npm version.

After this step, you're ready to publish this new version:

npm publish

How to build for preprod and test it locally without publishing

If you're working with a new (or modified) API that is only available on the preprod env, you need a way to generate a client for this version and use it locally in your projects.

To do this, you need to run the build script with the preprod endpoint:

API_BASE_URL="https://ccapi-preprod.cleverapps.io/v2" npm run build

Then, you need to generate a local package:

npm pack

This will generate a local archive named clever-client-X.Y.Z.tgz. You can use this archive in your local projects to try and test the new (or modified) APIs.

If your project uses npm, you'll have to do this:

npm install path/to/clever-client-X.Y.Z.tgz

This will override the version specified in the package.json.

If your project uses yarn, you'll have to do this:

yarn cache clean clever-client
yarn add -f path/to/clever-client-X.Y.Z.tgz
0.11.3

5 years ago

1.0.0-alpha.6

5 years ago

1.0.0-alpha.5

5 years ago

1.0.0-alpha.4

5 years ago

1.0.0-alpha.3

5 years ago

1.0.0-alpha.2

5 years ago

1.0.0-alpha.1

5 years ago

1.0.0-alpha.0

5 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.8.0-beta.0

6 years ago

0.7.7

6 years ago

0.7.6

6 years ago

0.7.5

6 years ago

0.7.4

6 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.18

8 years ago

0.2.17

8 years ago

0.2.16

8 years ago

0.2.15

8 years ago

0.2.14

8 years ago

0.2.13

9 years ago

0.2.12

9 years ago

0.2.11

9 years ago

0.2.10

9 years ago

0.2.9

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.5

9 years ago

0.2.6

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.0-beta.10

9 years ago

0.2.0-beta.9

9 years ago

0.2.0-beta.8

9 years ago

0.2.0-beta.7

9 years ago

0.2.0-beta.6

9 years ago

0.2.0-beta.5

9 years ago

0.2.0-beta.4

9 years ago

0.2.0-beta.3

9 years ago

0.2.0-beta.2

9 years ago

0.2.0-beta.1

9 years ago

0.1.30

9 years ago

0.1.31

9 years ago

0.1.32

9 years ago

0.1.33

9 years ago

0.1.29

9 years ago

0.1.28

10 years ago

0.1.27

10 years ago

0.1.26

10 years ago

0.1.25

10 years ago

0.1.24

10 years ago

0.1.23

10 years ago

0.1.22

10 years ago

0.1.21

10 years ago

0.1.2-0.1

10 years ago

0.1.20

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago