Socket
Socket
Sign inDemoInstall

gulp-gitignore

Package Overview
Dependencies
70
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-gitignore

Exlude files defined on .gitignore from the stream


Version published
Weekly downloads
19
decreased by-17.39%
Maintainers
1
Install size
898 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 06 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc