LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gulp

JavaScript task runner for automating development workflows

TLDR

Run default task
$ gulp
copy
Run specific task
$ gulp [taskname]
copy
List available tasks
$ gulp --tasks
copy
Run multiple tasks in series instead of parallel
$ gulp [task1] [task2] --series
copy
Run with custom gulpfile
$ gulp --gulpfile [path/gulpfile.js]
copy
Run in silent mode
$ gulp --silent
copy
Watch for changes (requires a "watch" task in the gulpfile)
$ gulp watch
copy

SYNOPSIS

gulp [options] [tasks...]

DESCRIPTION

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 listed on the CLI run concurrently (in parallel) by default, as if they were dependencies of a single task.

PARAMETERS

-T, --tasks

Print the task dependency tree for the loaded gulpfile.
--tasks-simple
Print a plaintext list of tasks, useful for scripting.
-f, --gulpfile path
Manually set the path of the gulpfile.
--cwd dir
Manually set the working directory.
-S, --silent
Suppress all gulp logging.
--continue
Continue execution of tasks upon failure.
-L, --log-level
Set the logging level; repeat to increase verbosity (e.g. -LL).
--series
Run the tasks given on the CLI in series instead of parallel.
--color, --no-color
Force enable or disable colored output.
-v, --version
Print the global and local gulp versions.

INSTALL

sudo pacman -S gulp
copy

CAVEATS

Requires Node.js and npm. Plugin ecosystem fragmented. Gulp 4 API differs from 3. Some plugins unmaintained.

HISTORY

gulp was created by Eric Schoffstall and released in 2013 as an alternative to Grunt. Its streaming approach and code-based configuration appealed to developers. While newer bundlers have emerged, gulp remains popular for task automation.

SEE ALSO

npm(1), webpack(1), grunt(1), make(1)

RESOURCES

Copied to clipboard
Kai