2.0.0 • Published 8 years ago

gulp-only v2.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

gulp-only

A simple gulp plugin that will search for describe.only and it.only, and list any files that have them.

Installation

npm install gulp-only

Usage:

Suggested use it to run it on pre-commit, so you can use .only in development but will prevent you from commiting them.

const gulpOnly = require('gulp-only');

const specFiles = [
  'src/**/*.spec.js'
];

gulp.task('only-lint', () => {
  return gulp.src(specFiles)
    .pipe(gulpOnly.default())
    .pipe(gulpOnly.results());
});

gulp.task('pre-commit', ['only-lint']);
2.0.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago