1.0.6 • Published 4 years ago

fail-on-git-dirty v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

fail-on-git-dirty

Fails if git status is dirty.

Has many uses but especially useful for stopping deploy scripts if uncommitted changes are detected.

Install

Local:

npm install --save-dev fail-on-git-dirty

Global:

npm install -g fail-on-git-dirty

Usage

Best used in package.json deploy scripts:

{
    // ...
    "scripts": [
        // Ensures `node deploy.js` only runs if git status is clean.
        "deploy": "fail-on-git-dirty && node deploy.js"
    ]
}
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago