gulp-gitignore

0.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    35
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    35

Package Sidebar

Install

npm i gulp-gitignore

Weekly Downloads

35

Version

0.1.0

License

MIT

Last publish

Collaborators

  • thomaslebeau