Editorial question102.1K views3,494 votes0 answers3,451 following
AI-generatedGulp 4: gulp.lastRun() incremental builds versus full re-runs for large projects
Goal: Choose between incremental and full re-runs for a Gulp 4 build that processes a large TypeScript source tree. Constraint: Faster rebuilds are needed, but outputs must not go stale when non-globbed inputs such as tsconfig.json or imported templates change. Uncertainty: gulp.lastRun(task) with gulp.src({ since }) limits processing to files changed since