@types/gulp

  • Version 4.0.9
  • Published
  • 6.23 kB
  • 3 dependencies
  • MIT license

Install

npm i @types/gulp
yarn add @types/gulp
pnpm add @types/gulp

Overview

TypeScript definitions for Gulp

Index

Variables

variable GulpClient

const GulpClient: GulpClient.Gulp;

    Interfaces

    interface Gulp

    interface Gulp extends Undertaker {}

      property dest

      dest: DestMethod;
      • Can be piped to and it will write files. Re-emits all data passed to it so you can pipe to multiple folders. Folders that don't exist will be created.

        Parameter path

        The path (output folder) to write files to. Or a function that returns it, the function will be provided a vinyl File instance.

      property src

      src: SrcMethod;
      • Emits files matching provided glob or array of globs. Returns a stream of Vinyl files that can be piped to plugins.

        Parameter globs

        Glob or array of globs to read.

        Parameter options

        Options to pass to node-glob through glob-stream.

      symlink: typeof vfs.symlink;
      • Functions exactly like gulp.dest, but will create symlinks instead of copying a directory.

        Parameter folder

        A folder path or a function that receives in a file and returns a folder path.

      property watch

      watch: WatchMethod;
      • Takes a path string, an array of path strings, a glob string or an array of glob strings as globs to watch on the filesystem. Also optionally takes options to configure the watcher and a fn to execute when a file changes. A path string, an array of path strings, a glob string or an array of glob strings that indicate which files to watch for changes. Options that are passed to chokidar. Once async completion is signalled, if another run is queued, it will be executed.

      interface WatchMethod

      interface WatchMethod {}

        call signature

        (globs: Globs, fn?: Undertaker.TaskFunction): fs.FSWatcher;

          call signature

          (globs: Globs, opts?: WatchOptions, fn?: Undertaker.TaskFunction): fs.FSWatcher;

            interface WatchOptions

            interface WatchOptions extends chokidar.WatchOptions {}

              property delay

              delay?: number | undefined;
              • The delay to wait before triggering the fn. Useful for waiting on many changes before doing the work on changed files, e.g. find-and-replace on many files. 200

              property queue

              queue?: boolean | undefined;
              • Whether or not a file change should queue the fn execution if the fn is already running. Useful for a long running fn. true

              Type Aliases

              type DestMethod

              type DestMethod = typeof vfs.dest;

                type Globs

                type Globs = string | string[];

                  type SrcMethod

                  type SrcMethod = typeof vfs.src;

                    type TaskCallback

                    type TaskCallback = TaskFunction;
                    • Deprecated

                      - Now use TaskFunction.

                    type TaskFunction

                    type TaskFunction = Undertaker.TaskFunction;

                      type TaskFunctionCallback

                      type TaskFunctionCallback = Undertaker.TaskCallback;

                        Package Files (1)

                        Dependencies (3)

                        Dev Dependencies (0)

                        No dev dependencies.

                        Peer Dependencies (0)

                        No peer dependencies.

                        Badge

                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/gulp.

                        • Markdown
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/gulp)
                        • HTML
                          <a href="https://www.jsdocs.io/package/@types/gulp"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>