fail-on-git-dirty

1.0.6 • Public • Published

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"
    ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i fail-on-git-dirty

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

2.65 kB

Total Files

4

Last publish

Collaborators

  • surajs02