0.0.37 • Published 2 years ago

@types/gulp-load-plugins v0.0.37

Weekly downloads
6,167
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/gulp-load-plugins

Summary

This package contains type definitions for gulp-load-plugins (https://github.com/jackfranklin/gulp-load-plugins).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-load-plugins.

index.d.ts

// Type definitions for gulp-load-plugins
// Project: https://github.com/jackfranklin/gulp-load-plugins
// Definitions by: Joe Skeen <https://github.com/joeskeen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

/** Loads in any gulp plugins and attaches them to an object, freeing you up from having to manually require each gulp plugin. */
declare module 'gulp-load-plugins' {

    interface IOptions {
        /** the glob(s) to search for, default ['gulp-*', 'gulp.*'] */
        pattern?: string[] | undefined;
        /** where to find the plugins, searched up from process.cwd(), default 'package.json' */
        config?: string | undefined;
        /** which keys in the config to look within, default ['dependencies', 'devDependencies', 'peerDependencies'] */
        scope?: string[] | undefined;
        /** what to remove from the name of the module when adding it to the context, default /^gulp(-|\.)/ */
        replaceString?: RegExp | undefined;
        /** if true, transforms hyphenated plugin names to camel case, default true */
        camelize?: boolean | undefined;
        /** whether the plugins should be lazy loaded on demand, default true */
        lazy?: boolean | undefined;
        /** a mapping of plugins to rename, the key being the NPM name of the package, and the value being an alias you define */
        rename?: IPluginNameMappings | undefined;
    }

    interface IPluginNameMappings {
        [npmPackageName: string]: string
    }

    /** Loads in any gulp plugins and attaches them to an object, freeing you up from having to manually require each gulp plugin. */
    function gulpLoadPlugins<T extends IGulpPlugins>(options?: IOptions): T;

    namespace gulpLoadPlugins {}

    export = gulpLoadPlugins;
}

/**
 * Extend this interface to use Gulp plugins in your gulpfile.js
 */
interface IGulpPlugins {
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:22:30 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Joe Skeen.

0.0.35

2 years ago

0.0.36

2 years ago

0.0.37

2 years ago

0.0.34

2 years ago

0.0.33

4 years ago

0.0.32

5 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26-alpha

9 years ago

0.0.25-alpha

9 years ago

0.0.24-alpha

9 years ago

0.0.23-alpha

9 years ago

0.0.22-alpha

9 years ago

0.0.21-alpha

9 years ago

0.0.20-alpha

9 years ago

0.0.15-alpha

9 years ago

0.0.14-alpha

9 years ago