Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G gulp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gulp
  • gulp
  • Issues
  • #1176
Closed
Open
Issue created Jul 29, 2015 by Administrator@rootContributor

gulp.src ignore option does not work

Created by: mprokopowicz

I can't get the ignore option of gulp.src working:

'use strict';

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

var config = {
  src: 'app/**/*.js',
  test: 'app/**/*.test.js'
}

gulp.task('default', function() {
  return gulp.
    src(config.src, {ignore: config.test}).
    pipe(debug({title: 'debug'}));
});
[01:33:38] Using gulpfile ~/Projects/gulp-src/gulpfile.js
[01:33:38] Starting 'default'...
[01:33:38] debug app/src.js
[01:33:38] debug app/src.test.js
[01:33:38] debug 2 items
[01:33:38] Finished 'default' after 19 ms

Am I misunderstanding something? I would really like to use ignore option in favour of "!whatever/**" pattern.

I'm using gulp 3.9.0

Assignee
Assign to
Time tracking