@ondewo/csi-client-js
is a compiled version of the ONDEWO CSI API using the ONDEWO PROTO COMPILER. Here you can find the CSI API documentation.
ONDEWO APIs use Protocol Buffers version 3 (proto3) as their Interface Definition Language (IDL) to define the API interface and the structure of the payload messages. The same interface definition is used for gRPC versions of the API in all languages.
Using NPM:
npm i --save @ondewo/ondewo-csi-client-js
Using GitHub:
git clone https://github.com/ondewo/ondewo-csi-client-js.git ## Clone repository
cd ondewo-csi-client-js ## Change into repo-directoy
make setup_developer_environment_locally ## Install dependencies
npm
├── api
│ ├── ondewo_csi_api.js
│ ├── ondewo_csi_api.min.js
│ └── ondewo_csi_api.min.js.map
├── LICENSE
├── package.json
└── README.md
The make build
command is dependent on 2 repositories
and their speciefied version
:
- ondewo-csi-api --
CSI_API_GIT_BRANCH
inMakefile
- ondewo-proto-compiler --
ONDEWO_PROTO_COMPILER_GIT_BRANCH
inMakefile
Other than creating the proto-code, build
also installs the dev-dependencies
and changes the owner of the proto-code-files from root
to the current user
.
✅ The js-compiler (version ~4.1.1) will prompt to download webpack -- write yes / y to finish the build
The repository is published to GitHub and NPM by the Automated Release Process of ONDEWO.
TODO after PR merge:
-
checkout master
git checkout master
-
pull newest state
git pull
-
Adjust
ONDEWO_CSI_VERSION
in theMakefile
-
Add new Release Notes to
src/RELEASE.md
in following format:## Release ONDEWO CSI Js Client X.X.X <----- Beginning of Notes ...<NOTES>... ***************** <----- End of Notes
-
release
make ondewo_release
The release process can be divided into 6 Steps:
build
specified version of theondewo-csi-api
commit and push
all changes in code resulting from thebuild
- Publish the created
npm
folder tonpmjs.com
- Create and push the
release branch
e.g.release/1.3.20
- Create and push the
release tag
e.g.1.3.20
- Create a new
Release
on GitHub
⚠️ The Release Automation checks if the build has created all the proto-code files, but it does not check the code-integrity. Please build and test the generated code prior to starting the release process.