gulp-skip-file
v0.1.1
Published
Gulp plugin to skip files.
Downloads
84
Readme
gulp-skip-file
Gulp plugin to skip files.
Install gulp-skip-file
This module requires node.js 6 or above.
npm i --save-dev gulp-skip-file
Usage
This is a pointless example as you can simply use !
patterns on gulp.src
.
The purpose of this module is to skip files added to a stream by an outside
module, where you do not control the call to gulp.src
.
'use strict';
const gulp = require('gulp');
const gulpIf = require('gulp-if');
const gulpSkipFile = require('gulp-skip-file');
gulp.task('default', function() {
return gulp.src('src/**')
.pipe(gulpIf(/\.ts/, gulpSkipFile()))
.pipe(gulp.dest('build'));
});
As shown gulpIf or another similar function should be used to restrict which files are skipped.
Running tests
Tests are provided by xo and ava.
npm install
npm test