# gulp-load

> Load gulp task just like grunt.loadTasks.

Latest version **0.1.1** (published 2014-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-load
pnpm add gulp-load
yarn add gulp-load
bun add gulp-load
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-01-07 |
| First published | 2013-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | popomore |
| Maintainers | popomore |
| Keywords | gulp, gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-load
- Repository: https://github.com/popomore/gulp-load
- Issues: https://github.com/popomore/gulp-load/issues
- npm.io page: https://npm.io/package/gulp-load

## Dependencies (1)

- [glob](https://npm.io/package/glob.md) ~3.2.7

## Recent versions

- 0.1.1 (latest) — 2014-01-07
- 0.1.0 — 2013-12-22
- 0.0.0 — 2013-12-21

## README

# Gulp-load

[![Build Status](https://travis-ci.org/popomore/gulp-load.png?branch=master)](https://travis-ci.org/popomore/gulp-load)
[![Coverage Status](https://coveralls.io/repos/popomore/gulp-load/badge.png)](https://coveralls.io/r/popomore/gulp-load)

Load gulp task just like grunt.loadTasks.

If you want to load plugins automatically, [gulp-load-tasks](https://github.com/jackfranklin/gulp-load-tasks) will be a good choice.

---

## Install

Install gulp-load

```
$ npm install --save gulp-load
```

## Usage

Require gulp-load in your gulpfile

```
var gulp = require('gulp');
require('gulp-load')(gulp);

// load tasks from tasks directory and
// dependencies of start with `gulp-` in package.json
gulp.loadTasks(__dirname);

// run tasks which you loaded
gulp.tasks('default', function() {
  gulp.run('your_task');
})
```

## API

Gulp-load will return a function that is same as `gulp.loadTasks`.

```
var loadTasks = require('gulp-load')(gulp);
loadTasks === gulp.loadTasks // return true
```

LoadTasks can load single file.

```
gulp.loadTasks('path/to/task.js');
```

LoadTasks can load specified module.

```
gulp.loadTasks('path/to/module');
```

LoadTasks can load by module's name. It will lookup from `NODE_PATH` and node_modules of current module.

```
gulp.loadTasks('gulp-concat');
```

**If load a module, it will load task from tasks directory of current module, and if gulp plugins (start with gulp-) exists in dependencies of package.json, then it will load each plugin as a module.**

## License

MIT

---
_Source: https://npm.io/package/gulp-load · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
