gulp-skip-file

0.1.1 • Public • Published

gulp-skip-file

Travis CI Greenkeeper badge NPM Version NPM Downloads MIT

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-skip-file

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

5 kB

Total Files

7

Last publish

Collaborators

  • coreyfarrell