@types/run-sequence
TypeScript definitions for run-sequence
Last updated 8 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/run-sequence 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/run-sequence

Summary

This package contains type definitions for run-sequence (https://github.com/OverZealous/run-sequence).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/run-sequence.

index.d.ts

/// <reference types="node" />

import gulp = require("gulp");
import undertaker = require("undertaker");

declare namespace r {
    type Task = string | string[] | null | undefined;

    interface RunSequence {
        /**
         * Runs a sequence of gulp tasks in the specified order.
         * This function is designed to solve the situation where
         * you have defined run-order, but choose not to or cannot use dependencies.
         *
         * Each argument to run-sequence is run in order.
         * This works by listening to the `task_stop` and `task_err` events,
         * and keeping track of which tasks have been completed.
         * You can still run some of the tasks in parallel,
         * by providing an array of task names for one or more of the arguments.
         *
         * If the final argument is a function, it will be used as a callback
         * after all the functions are either finished or an error has occurred.
         */
        (...tasks: [...r.Task[], undertaker.TaskCallback]): NodeJS.ReadWriteStream;
        (...tasks: r.Task[]): NodeJS.ReadWriteStream;

        /**
         * If you have a complex gulp setup with your tasks split up across different files,
         * you may get the error that run-sequence is unable to find your tasks.
         * In this case, you can configure run-sequence to look at the gulp within the submodule.
         */
        use(gulp: gulp.Gulp): RunSequence;

        /**
         * There are a few global options you can configure on the `runSequence` function.
         *
         * Please note these are **global to the module**,
         * and once set will affect every use of `runSequence`.
         */
        options: {
            /**
             * When set to `false`, this suppresses the full stack trace from errors captured
             * during a sequence.
             *
             * @default true
             */
            showErrorStackTrace: boolean;

            /**
             * When set to `true`, this enables you to pass falsey values
             * in which will be stripped from the task set before validation and sequencing.
             *
             * @default false
             */
            ignoreUndefinedTasks: boolean;
        };
    }
}

declare const r: r.RunSequence;
export = r;

Additional Details

Credits

These definitions were written by Keita Kagurazaka.

Current Tags

  • 2.2.0                                ...           latest (a year ago)
  • 0.0.30                                ...           ts2.0 (8 years ago)
  • 0.0.30                                ...           ts2.1 (8 years ago)
  • 0.0.30                                ...           ts2.2 (8 years ago)
  • 0.0.30                                ...           ts2.3 (8 years ago)
  • 0.0.30                                ...           ts2.4 (8 years ago)
  • 0.0.30                                ...           ts2.5 (8 years ago)
  • 0.0.30                                ...           ts2.6 (8 years ago)
  • 0.0.30                                ...           ts2.7 (8 years ago)
  • 0.0.30                                ...           ts2.8 (8 years ago)
  • 0.0.30                                ...           ts2.9 (8 years ago)
  • 0.0.30                                ...           ts3.0 (8 years ago)
  • 0.0.30                                ...           ts3.1 (8 years ago)
  • 0.0.30                                ...           ts3.2 (8 years ago)
  • 0.0.30                                ...           ts3.3 (8 years ago)
  • 0.0.30                                ...           ts3.4 (8 years ago)
  • 0.0.30                                ...           ts3.5 (8 years ago)
  • 0.0.30                                ...           ts3.6 (8 years ago)
  • 0.0.30                                ...           ts3.7 (8 years ago)
  • 0.0.30                                ...           ts3.8 (8 years ago)
  • 0.0.30                                ...           ts3.9 (8 years ago)
  • 0.0.30                                ...           ts4.0 (8 years ago)
  • 0.0.30                                ...           ts4.1 (8 years ago)
  • 0.0.30                                ...           ts4.2 (8 years ago)
  • 0.0.30                                ...           ts4.3 (8 years ago)
  • 0.0.30                                ...           ts4.4 (8 years ago)
  • 0.0.34                                ...           ts4.5 (2 years ago)
  • 0.0.34                                ...           ts4.6 (2 years ago)
  • 0.0.34                                ...           ts4.7 (2 years ago)
  • 2.2.0                                ...           ts4.8 (a year ago)
  • 2.2.0                                ...           ts4.9 (a year ago)
  • 2.2.0                                ...           ts5.0 (a year ago)
  • 2.2.0                                ...           ts5.1 (a year ago)
  • 2.2.0                                ...           ts5.2 (a year ago)
  • 2.2.0                                ...           ts5.3 (a year ago)
  • 2.2.0                                ...           ts5.4 (a year ago)
  • 2.2.0                                ...           ts5.5 (a year ago)
  • 2.2.0                                ...           ts5.6 (a year ago)
  • 2.2.0                                ...           ts5.7 (a year ago)
  • 2.2.0                                ...           ts5.8 (a year ago)
  • 2.2.0                                ...           ts5.9 (a year ago)

18 Versions

  • 2.2.0                                ...           a year ago
  • 0.0.34                                ...           2 years ago
  • 0.0.33                                ...           2 years ago
  • 0.0.32                                ...           2 years ago
  • 0.0.31                                ...           3 years ago
  • 0.0.30                                ...           8 years ago
  • 0.0.29                                ...           9 years ago
  • 0.0.28                                ...           10 years ago
  • 0.0.27                                ...           10 years ago
  • 0.0.26-alpha                                ...           10 years ago
  • 0.0.25-alpha                                ...           10 years ago
  • 0.0.24-alpha                                ...           10 years ago
  • 0.0.23-alpha                                ...           10 years ago
  • 0.0.22-alpha                                ...           10 years ago
  • 0.0.21-alpha                                ...           10 years ago
  • 0.0.20-alpha                                ...           10 years ago
  • 0.0.15-alpha                                ...           10 years ago
  • 0.0.14-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |