reg-simple-keygen-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.14.2 • Public • Published

reg-simple-keygen-plugin

A reg-suit plugin to determine the snapshot key with given values.

Install

npm i reg-simple-keygen-plugin -D

Configure

{
  expectedKey: string;
  actualKey: string;
}
  • expectedKey - Required - Identifier key value of the expected(previous) snapshot.
  • actualKey - Required - Identifier key value of the actual(current) snapshot.

Example

Using environment values

Using reg-suit's replacing environment values feature, you can use Git commit sha1 hashes provided with CI service. The following example allows reg-suit to compare HEAD of the master branch with the PR's commit.

# .travis.yml
script:
  - export EXPECTED_KEY=$(git rev-parse origin/master)
  - export ACTUAL_KEY=$TRAVIS_COMMIT # set by TravisCI
  - reg-suit run
  // regconfig.json
  "plugins": {
    "reg-simple-keygen-plugin": {
      "expectedKey": "${EXPECTED_KEY}",
      "actualKey": "${ACTUAL_KEY}"
    },
    ...
  }

/reg-simple-keygen-plugin/

    Package Sidebar

    Install

    npm i reg-simple-keygen-plugin

    Weekly Downloads

    22,097

    Version

    0.14.2

    License

    MIT

    Unpacked Size

    67.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • quramy