Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sirzdy opened this issue Sep 24, 2020 · 2 comments
Open

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

sirzdy opened this issue Sep 24, 2020 · 2 comments

Comments

@sirzdy
Copy link

sirzdy commented Sep 24, 2020

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 micromatch/anymatch#35

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

@phated phated transferred this issue from gulpjs/gulp Sep 24, 2020
@phated
Copy link
Member

phated commented Sep 24, 2020

Moved to the appropriate issue tracker.

@phated
Copy link
Member

phated commented Mar 23, 2024

@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 phated added this to post-v5 Mar 25, 2024
@phated phated moved this to Todo in post-v5 Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants