Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
cmtt committed Apr 2, 2016
1 parent 9f6a2d4 commit eb1571b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,16 @@ instance from your Gulpfile.
If you specify options, these will be passed to [gulp-load-plugins](https://www.npmjs.com/package/gulp-load-plugins) under the hood ("camelize" cannot be configured at the moment).

```js
let di = GulpDI({
const gulp = require('gulp');
let di = GulpDI(gulp, {
DEBUG: false, // when set to true, the plugin will log info to console. Useful for bug reporting and issue debugging
pattern: ['gulp-*', 'gulp.*'], // the glob(s) to search for
config: 'package.json', // where to find the plugins, by default searched up from process.cwd()
scope: ['dependencies', 'devDependencies', 'peerDependencies'], // which keys in the config to look within
replaceString: /^gulp(-|\.)/, // what to remove from the name of the module when adding it to the context
rename: {}, // a mapping of plugins to rename
renameFn: function (name) { ... } // a function to handle the renaming of plugins (the default works)
}, require('gulp'));
});
```
The following options are additionally available:

Expand Down Expand Up @@ -480,6 +481,10 @@ let di = require('gulp-di')(gulp, {

## Changelog

0.0.32 - 04/02/2016

- Correcting an example in this file

0.0.31 - 03/13/2016

- options.argv for "runningTasks" test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-di",
"version": "0.0.31",
"version": "0.0.32",
"description": "Dependency injection framework for the Gulp streaming build system",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit eb1571b

Please sign in to comment.