Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sophilabs/gulp-check-grep
Gulp plugin to check for a pattern and fail when matched.
https://github.com/sophilabs/gulp-check-grep
grep gulp-plugin
Last synced: about 1 month ago
JSON representation
Gulp plugin to check for a pattern and fail when matched.
- Host: GitHub
- URL: https://github.com/sophilabs/gulp-check-grep
- Owner: sophilabs
- License: mit
- Created: 2016-12-28T15:32:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T18:03:37.000Z (over 7 years ago)
- Last Synced: 2024-11-02T00:46:57.426Z (3 months ago)
- Topics: grep, gulp-plugin
- Language: JavaScript
- Homepage: https://sophilabs.co/open-source
- Size: 34.2 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gulp Check Grep
[![travis][travis-image]][travis-url]
[![coverage][coveralls-image]][coveralls-url]
[![npm][npm-image]][npm-url]
[![downloads][downloads-image]][downloads-url]
[![js-semistandard-style][semi-image]][semi-url]
[![license][license-image]][license-url]
[![dependencies][dependencies-image]][dependencies-url]
[![dev-dependencies][dev-dependencies-image]][dev-dependencies-url]Gulp plugin to detect a pattern through files and fail when found.
## Installation
```bash
npm install gulp-check-grep
```## Usage
```javascript
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][sophilabs-image]][sophilabs-url]
Gulp Check Grep is maintained and funded by sophilabs, inc. The names and logos for
sophilabs are trademarks of sophilabs, inc.[license]: /LICENSE
[sophilabs-image]: https://s3.amazonaws.com/sophilabs-assets/logo/logo_300x66.gif
[sophilabs-url]: https://sophilabs.co
[travis-image]: https://img.shields.io/travis/sophilabs/gulp-check-grep.svg?style=flat-square
[travis-url]: https://travis-ci.org/sophilabs/gulp-check-grep
[npm-image]: https://img.shields.io/npm/v/gulp-check-grep.svg?style=flat-square
[npm-url]: https://npmjs.org/packge/gulp-check-grep
[downloads-image]: https://img.shields.io/npm/dm/gulp-check-grep.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/gulp-check-grep
[semi-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square
[semi-url]: https://github.com/Flet/semistandard
[coveralls-image]: https://img.shields.io/coveralls/sophilabs/gulp-check-grep.svg?style=flat-square
[coveralls-url]: https://coveralls.io/github/sophilabs/gulp-check-grep?branch=master
[license-image]: https://img.shields.io/github/license/sophilabs/gulp-check-grep.svg?style=flat-square
[license-url]: /LICENSE
[dependencies-image]: https://david-dm.org/sophilabs/gulp-check-grep.svg?style=flat-square
[dependencies-url]: https://david-dm.org/sophilabs/gulp-check-grep
[dev-dependencies-image]: https://david-dm.org/sophilabs/gulp-check-grep/dev-status.svg?style=flat-square
[dev-dependencies-url]: https://david-dm.org/sophilabs/gulp-check-grep#info=devDependencies