git-pristine
A function that returns a rejected promise if you're not on a clean, up-to-date master branch
Install
yarn install git-pristine
Usage
To use just require and call
const pristine = ; await ; // throws if not clean, up-to-date, master
There is also a Gulp plugin for build scripts.
const gulp = ;const webpack = ;const pristine = ; gulp;