glob-watcher icon indicating copy to clipboard operation
glob-watcher copied to clipboard

When there is a midline, the watch result is wrong.

Open sirzdy opened this issue 5 years ago • 2 comments

When there is a midline, the watch result is wrong.

Please give us a sample of your gulpfile

var gulp = require(‘gulp');

gulp.task('watch', series(() => {
  watch([
    'src/**/*',
  ], {
    ignored: [
      'src/abc/**/*',
    ]
  }, () => {
    return gulp.src('src/**/*')
      .pipe(gulp.dest('es'));
  }).on('all', (stats, file) => {
    console.log(`File [${file}] ${stats}`);
  })
}));

What were you expecting to happen?

src/abc-def/index.js should be watched

What actually happened?

src/abc-def/index.js is ignored

Additional information

The primary cause is anymatch. see https://github.com/micromatch/anymatch/issues/35

We should update anymatch (the dependencies of glob-watcher) to the latest, then update glob-watcher (the dependencies of gulp) to the latest

sirzdy avatar Sep 24 '20 07:09 sirzdy

Moved to the appropriate issue tracker.

phated avatar Sep 24 '20 17:09 phated

@sttk can you take a look at this? I'm not sure if it is still a problem since we've updated dependencies. Perhaps you can add a test?

phated avatar Mar 23 '24 04:03 phated