1.1.2 • Published 4 years ago
@shaarit/truuth-db v1.1.2
truuth-db
How to make changes to this package
- Pull repo from above Github repo and create the feature branch "feature-*" from "develop" branch
- Make a change to the package. Make sure you updated the version before commit and push. please refer below Publish and versioning section
- Create the unit test case and make sure all your functions are covered
- Commit and push it to feature branch
- Raise the Pull request to develop branch and add reviewers to make sure our code is safe to push
- Successful change will automatically initiate the Travis CI to publish the package to npm private repo @locii/truth-db
Publish and versioning
- Before pushing to the release branch, be sure to update the version number of your package.json
- This can easily be done by using one of the following npm commands:
$ npm version patch
$ npm version minor
$ npm version major
patch: 1.0.0 -> 1.0.1
minor: 1.0.0 -> 1.1.0
major: 1.0.0 -> 2.0.0
By using the npm version command, npm will automatically create and commit a git tag for you. When you push your code to the develop branch, Travis CI will automatically build, test and publish to npm for you!
Using private package
npm install @locii/truuth-db
Code Sample
import {truuthDb} from "@locii/truuth-db";
truuthDb(true, {
tenantId: tenantId,
collectionName: "tenantIsolation",
options: {},
});