[go: nahoru, domu]

Skip to content

hermeslin/guardian-of-env

Repository files navigation

guardian-of-env

Build Status codecov version npm Renovate enabled

Screenshot

Screenshot

Installation

yarn add guardian-of-env --dev

Configuration

in your project folder, execute guardian-of-env, and guardian-of-env compares .env and .env.example file by default.

npx guardian-of-env

or set more files that you want to compare

npx guardian-of-env .env .env.example .env.exmaple.example

Work with pre-commit

install pre-commit first, and follow the configuration of package.json below

{
    "scripts": {
        "guardian-of-env": "guardian-of-env"
    },
    "pre-commit": [
        "guardian-of-env"
    ],
}

Work with travis-ci

or you want to compare your .env files in the ci phase

package.json

{
    "scripts": {
        "guardian-of-env": "./node_modules/.bin/guardian-of-env .env .env.test"
    },
}

.travis.yml

script:
- yarn guardian-of-env