gulp-gitignore
Exlude files defined on .gitignore from the stream
Last updated 9 years ago by thomaslebeau .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install gulp-gitignore 
SYNC missed versions from official npm registry.

gulp-gitignore Build Status

Exlude files defined on .gitignore from the stream

Install

$ npm install --save-dev gulp-gitignore

Usage

var gulp = require('gulp');
var gitignore = require('gulp-gitignore');

gulp.task('default', function () {
    return gulp.src('src/**/*')
        // exclude files defined in .gitignore
        .pipe(gitignore())
        .pipe(gulp.dest('dist'));
});

API

gitignore(file, [pattern],[options])

file

Type: string Default: .gitignore

The .gitignore file.

pattern

Type: array

You can optionally pass an additional array of patterns to exlude from the stream.

gitignore('.gitignore', ['foo', 'bar']);

options

Type: object

options.dot

Type: boolean
Default: false

Matches files prefixed with a dot (eg. .DS_Store).

License

MIT © Thomas Lebeau

Current Tags

  • 0.1.0                                ...           latest (9 years ago)

1 Versions

  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE