1.0.6 • Published 5 years ago

fail-on-git-dirty v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago