bdd-vc 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @telus/bdd-vc@1.0.0
Install via package.json:
"@telus/bdd-vc": "1.0.0"
About this version
The BDDVC is a small and fast utility designed to streamline the version control processes for BDD (Behavior-Driven Development) frameworks. It exposes a run method, allowing you to perform various actions related to version control within your BDD project.
Function | Action | Description |
---|---|---|
checkCoreVersion | CHECK_CORE_VERSION |
Verifies the version of the BDD Core in use. Usually starts automatically (depending on the settings) when the package is published via Github Actions. |
checkModularStepsCoreVersion | CHECK_MODULAR_STEPS_CORE_VERSION |
Checks the core version in Modular Steps(BDD-MS). This method is intended to be run inside a project that uses other bdd-ms packages. |
removeNestedCoreVersions | REMOVE_NESTED_CORE_VERSIONS |
Removes any nested core (out-of-date) versions, ensuring a clean version control environment. Mainly intended for bdd-platform, but can be used for its intended purpose in other projects |
To run this project, you will need to add the following environment variables to your .env file
- Add the
.npmrc
file with the following content:
//npm.pkg.github.com/:_authToken=ghp_token
@organization-name:registry=https://npm.pkg.github.com
- Install
npm i @organization-name/bdd-vc
- Add the
bdd-vc-secrets.env
file to root directory with the following content:
BDDVC_GITHUB_TOKEN=ghp_token
BDDVC_GITHUB_OWNER=organization-name
BDDVC_GITHUB_CORE_REPO=core-repository-name
BDDVC_GITHUB_VC_REPO=vc-repository-name
BDDVC_CORE_PACKAGE_NAME_ALIAS=repository-name-new
BDDVC_ALLOW_PRE_RELEASE=true
BDDVC_SKIP_LIST=["bdd-vc", "repository-name"]
BDDVC_USE_LOCAL_VERSION_LIST=false
- Add the script you need to your package.json:
"scripts": {
"check-cv": "env-cmd -f ./bdd-vc-secrets.env check-core-version",
"check-ms-cv": "env-cmd -f ./bdd-vc-secrets.env check-modular-steps-core-version",
"remove-ncv": "env-cmd -f ./bdd-vc-secrets.env remove-nested-core-versions"
},
Important! The env-cmd package must be installed to transfer data from the file to the env environment
- Launch and enjoy 🐱
[!IMPORTANT] Link is not available inside the bdd-vc package due to a large size of the screenshots in the state documentation
[!NOTE] You can contribute to the development of the package. If you find a bug, create a issue or make an edit yourself, and after checking, create a PR. Good luck.