Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/varemenos/load-tasks-gulp
load gulp tasks automatically, no need to require every single one of them
https://github.com/varemenos/load-tasks-gulp
Last synced: about 1 month ago
JSON representation
load gulp tasks automatically, no need to require every single one of them
- Host: GitHub
- URL: https://github.com/varemenos/load-tasks-gulp
- Owner: varemenos
- License: mit
- Created: 2015-11-13T16:31:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-14T11:55:13.000Z (about 9 years ago)
- Last Synced: 2024-11-24T03:08:59.288Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/load-tasks-gulp
- Size: 0 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# load-tasks-gulp
> Hassle-free task loading. You no need to require every single one of them yourself!
[![Build Status](https://travis-ci.org/varemenos/load-tasks-gulp.svg)](https://travis-ci.org/varemenos/load-tasks-gulp)
With `load-tasks-gulp` you can load all the gulp tasks that are defined in your package.json file.
## Install
```
$ npm install --save-dev load-tasks-gulp
```## Usage
```js
// Gulpfile.js
require('load-tasks-gulp')();
```## Examples
```js
// package.json
"devDependencies": {
"gulp-sass": "^2.1.0"
}
``````js
// Gulpfile.js
gulp.src('./sass/**/*.scss')
.pipe(sass()
.pipe(gulp.dest('./css'));
]);
```As you see, there was no need to require() the `gulp-sass` package. That's because it was automatically detected and loaded by load-tasks-gulp since was declared in the package.json file.
## Credits
heavily inspired by https://github.com/sindresorhus/load-grunt-tasks
## License
MIT