0.2.1 • Published 7 years ago

git-prestine v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

git-prestine

A function that returns a rejected promise if you're not on a clean, up-to-date master branch

Install

yarn install git-prestine

Usage

To use just require and call

const prestine = require('git-prestine');

await prestine(); // throws if not clean, up-to-date, master

There is also a Gulp plugin for build scripts.

const gulp = require('gulp');
const webpack = require('gulp-webpack');
const prestine = require('git-prestine/gulp');

gulp.task('build', function() {
  return gulp.src('./src/index.js')
    .pipe(prestine()) // task fails if not clean, up-to-date, master
    .pipe(webpack())
    .pipe(gulp.dest('dist/'));
});
0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago