5.1.0 • Published 3 months ago

neru-alpha v5.1.0

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

NERU-SDK

npm version Coverage Status

Table of Contents

About

A Node.js SDK for NeRu platform for interacting with Vonage API.

To get started, please visit our documentation.

Installation

npm install neru-alpha --save

Development

Pre-Requisites

  • Node.js 14x or higher
  • NPM 6x or higher
  • Git

Clone the repository and install the dependencies.

git clone git@github.com:nexmoinc/neru-sdk.git

cd neru-sdk/nodejs

npm install

Branching

This project follows the Git Flow branching model. The master branch always reflects a production-ready state while the latest development is taking place in the develop branch.

To contribute to the project, create a new feature branch off of the develop branch and merge back into develop when complete. Do not merge directly into master.

Hot fixes should be created as a branch off of master and merged into both master and develop.

Branch naming convention: <jira-task-id>__<short-description>

Build

To build the project, run the following command:

cd nodejs

npm run build

It will generate the SDK in the nodejs/dist folder.

📦dist
 ┣ 📂cjs          # CommonJS build
 ┃ ┗ neru.js     # Entry point
 ┗ 📂esm          # ES Module build
 ┃ ┗ neru.js     # Entry point

Generating SDKs from the source code

Pre-Requisites

Python SDK

To generate the Python SDK, run the following command:

pilo -l=python --input=nodejs/src --output=python/src --ignore='nodejs/src/bridge.ts' --namespace=nerualpha --clean=true

cp templates/python/* python/src/nerualpha

C# SDK

To generate the C# SDK, run the following command:

pilo -l=csharp --input=nodejs/src --output=dotnet --ignore='nodejs/src/bridge.ts' --namespace=Vonage.Neru --clean=true

cp templates/dotnet/* dotnet/Vonage.Neru

Releasing

  • Create a release branch from develop branch, e.g release/v1.0.0
  • Run tests locally by typing npm test in the nodejs folder
  • Generate Python SDK by running npm run generate:python. This will generate the Python SDK from nodejs src code and copy it to the python folder
    • Test the Python SDK by running smoke tests against the source code
  • Bump package version in nodejs and python SDKs manually or by running npm bumpVersion:[ major | minor | patch ] (requires python3, pip3, bumpver)
  • Update CHANGELOG.md in nodejs folder
  • Create a new release from the repository
    • Specify the tag name which is the version number e.g v1.0.0
    • Add a release title e.g v1.0.0
    • Add a description for the release
    • Publish the release. This will create a new release on GitHub and starts the release process using GitHub Actions for both nodejs and python SDKs
5.1.0

3 months ago

5.0.1

8 months ago

5.0.0

11 months ago

4.1.0

12 months ago

4.1.0-rc5

1 year ago

4.1.0-rc1

1 year ago

4.1.0-rc2

1 year ago

4.1.0-rc3

1 year ago

4.1.0-rc4

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

3.5.1

1 year ago

3.5.0

1 year ago

3.4.0

1 year ago

3.4.2

1 year ago

3.4.1

1 year ago

3.3.3

1 year ago

3.3.2

1 year ago

3.2.0

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.1.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.4.0

2 years ago

3.0.0

2 years ago

2.3.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.0.19

2 years ago

0.1.2

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago