Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gulp

> 编程语言
Open source

A toolkit to automate & enhance your workflow

33.0K stars0 likes4 views
WebsiteGitHub

About

A toolkit to automate & enhance your workflow

The streaming build system

NPM version Downloads Build Status Coveralls Status

What is gulp?

  • Automation - gulp is a toolkit that helps you automate painful or time-consuming tasks in your development workflow.
  • Platform-agnostic - Integrations are built into all major IDEs and people are using gulp with PHP, .NET, Node.js, Java, and other platforms.
  • Strong Ecosystem - Use npm modules to do anything you want + over 3000 curated plugins for streaming file transformations.
  • Simple - By providing only a minimal API surface, gulp is easy to learn and simple to use.

Installation

Follow our Quick Start guide.

Roadmap

Find out about all our work-in-progress and outstanding issues at https://github.com/orgs/gulpjs/projects.

Documentation

Check out the Getting Started guide and API docs on our website!

Excuse our dust! All other docs will be behind until we get everything updated. Please open an issue if something isn't working.

Sample gulpfile.js

This file will give you a taste of what gulp does.

…

Use latest JavaScript version in your gulpfile

Gulp provides a wrapper that will be loaded in your ESM code, so you can name your gulpfile as gulpfile.mjs or with "type": "module" specified in your package.json file.

And here's the same sample from above written in ESNext.

…

Incremental Builds

You can filter out unchanged files between runs of a task using the gulp.src function's since option and gulp.lastRun:

javascript
const paths = {
  ...
  images: {
    src: 'src/images/**/*.{jpg,jpeg,png}',
    dest: 'build/img/'
  }
}

function images() {
  return gulp.src(paths.images.src, {since: gulp.lastRun(images)})
    .pipe(imagemin())
    .pipe(gulp.dest(paths.images.dest));
}

function watch() {
  gulp.watch(paths.images.src, images);
}

Task run times are saved in memory and are lost when gulp exits. It will only save time during the watch task when running the images task for a second time.

Want to contribute?

Anyone can help make this project better - check out our Contributing guide!

Issues· 35 open

View all issuesOpen on GitHub
  • #2850

    Normalize repository

    Updated Sep 27, 2026
  • #2824

    gulp.src() doesn't like windows paths with paranthesis in the name?

    Updated Sep 20, 2026
  • #2834

    Gulp5: `gulpfile.ts` Not Found, `gulpfile.js` AOK

    Updated Sep 3, 2026
  • #2843

    Glob order matters for negated wildcard paths when it shouldn't

    Updated Nov 26, 2025
  • #2840

    ENOENT on nonexistant glob directory with gulp v5.0.1

    Updated Sep 10, 2025
  • #2818

    Error resolving symlink after upgrade to Gulp v5

    Updated Aug 12, 2025
  • #2807

    Upgrade from Gulp 4.0.2 to 5.0.0 with Node V20-LTS is missing bundled js files

    Updated Jul 11, 2025
  • #2811

    src() doesn't work with wildcards (4.0.2 -> 5.0.0)

    Updated Jun 26, 2025
  • #2803

    Corruption of image files during migration or optimization

    Updated Jun 13, 2025
  • #2812

    Pipeline errors are not properly handled in Gulp v5

    Updated Jun 4, 2025

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言