@ordercloud/portal-javascript-sdk v0.0.1-beta.42
portal-javascript-sdk
⌨ Writing code
Unlike other libraries, most of the code here is not handwritten. We use @ordercloud/oc-codegen to generate the code based on a set of templates located in /codegen/. This tool uses the Ordercloud Portal OpenAPI specification along with the templates to generate the full SDK. Most changes should be taking place on the OpenAPI spec. Any direct changes in /src/ will simply be overwritten when you run npm run build.
Generating the SDK
Be sure you have installed dependencies with runnpm install. Then run npm run build to generate the SDK and docs.
npm run build✨ Submitting a pull request
- Install dependencies
- Make your changes. Note: all of your changes should be to files in the openAPI spec or
/codegenand not directly to any of the files insrc/as those files get overwritten when the code is generated. - Run
npm run buildto regenerate the sdk, compile the code, run the tests, and generate the docs - Verify your changes work as expected. Run
npm install /path/to/this/folderin a different project to install locally and test - Commit your changes. We adhere to the gitmoji standard
- Update the sdk version in the package.json and make a separate version commit in the format
:bookmark: {newVersionHere} - Push to master.
🚀 Releasing
Assuming you or a contributor followed the instructions for submitting a pull request and are a maintainer you can follow these instructions to release a new version of the sdk.
- Verify the version has been bumped and adheres to semantic versioning
- Create a publish a new release on github
- Make sure you are logged into npm with
npm login - Run
npm publish --dry-runfor a preview, ornpm publish
10 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago