This module parses 3D data from Cognite Data Platform used in the 3D viewer.
This module is written in native typescript, so no extra types need to be defined.
Run all tests:
$ yarn
$ yarn test
We use jest
to run tests, see their documentation for more information.
- Run
yarn run pbjs -t json -o src/proto/web_scene.json {path to web_scene.proto}
New patch releases are usually based on the release branch for the given minor version.
- Checkout the release branch for the previous minor version, named
releases/x.y
.git checkout release/x.y
- Create a new branch for your changes
git checkout -b yourusername/release/x.y.z
- Cherry-pick your changes from the
master
branch or add new commits. - Update
package.json
with the correct version in the header. - Push your branch
git push
- Create a new pull requests from
yourusername/release/x.y.z
into therelease/x.y
branch. - Wait for review and merge. After merge, switch to branch
release/x.y
and pull changes. - Tag last commit with version, i.e. "vX.Y.Z".
- Push tag
git push --tags
- A new version will be published when the tag is pushed.
New minor or major releases are usually based directly on the current version in master
.
- Checkout the
master
branch.git checkout master
- Create a release branch.
git checkout -b release/x.y
- Push the branch.
git push
- Create a new branch for your changes:
git checkout -b yourusername/release/x.y
- Create a version commit by running.
$ npm version [minor/major] # example: $ npm version minor
- Push branch and push tags (
git push --tags
) - Create a new pull requests from
yourusername/release/x.y.z
into therelease/x.y
branch. - A new version will be published when the PR is merged