diff --git a/README.md b/README.md index 20439db..9b056bf 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,8 @@ 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() @@ -184,7 +185,7 @@ let di = GulpDI({ 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: @@ -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 diff --git a/package.json b/package.json index 7b957fa..dc8f6a7 100644 --- a/package.json +++ b/package.json @@ -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": {