← 返回命令列表

Linux command

gulp 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run default task

gulp

Run specific task

gulp [taskname]

List available tasks

gulp --tasks

Run with custom gulpfile

gulp --gulpfile [path/gulpfile.js]

Run in silent mode

gulp --silent

Watch for changes

gulp watch

说明

gulp is a JavaScript task runner for automating development workflows. It streams files through processing pipelines, handling tasks like compilation, minification, and testing. The tool uses code-over-configuration with a gulpfile.js defining tasks as JavaScript functions. Its streaming architecture makes it efficient for file processing.

参数

--tasks, -T
List available tasks.
--gulpfile _path_
Specify gulpfile location.
--cwd _dir_
Set working directory.
--silent, -S
Suppress output.
--continue
Continue on errors.
--log-level _level_
Logging level.
--series
Run tasks in series.
--parallel
Run tasks in parallel.

FAQ

What is the gulp command used for?

gulp is a JavaScript task runner for automating development workflows. It streams files through processing pipelines, handling tasks like compilation, minification, and testing. The tool uses code-over-configuration with a gulpfile.js defining tasks as JavaScript functions. Its streaming architecture makes it efficient for file processing.

How do I run a basic gulp example?

Run `gulp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --tasks, -T do in gulp?

List available tasks.