Skip to content

sophilabs/gulp-check-grep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp Check Grep

travis coverage npm downloads js-semistandard-style license dependencies dev-dependencies

Gulp plugin to detect a pattern through files and fail when found.

Installation

npm install gulp-check-grep

Usage

var gulp = require('gulp');
var gilp = require('gilp')(gulp);
var gulpCheckGrep = require('gulp-check-grep');

gulp.task('check', function () {
  return gulp.src('**/*')
    .pipe(gulpCheckGrep(/console\.log/g, {message: 'console.log not allowed'}))
    .pipe(gulpCheckGrep(/print\(/g, {message: 'print call found'}))
    .pipe(gulpCheckGrep.failOnError());
});

License

Gulp Check Grep is Copyright (c) 2016 sophilabs, inc. It is free software, and may be redistributed under the terms specified in the license file.

About

sophilabs

Gulp Check Grep is maintained and funded by sophilabs, inc. The names and logos for sophilabs are trademarks of sophilabs, inc.

About

Gulp plugin to check for a pattern and fail when matched.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •