jackfranklin / gulp-load-plugins

Automatically load in gulp plugins
https://github.com/jackfranklin/gulp-load-plugins
MIT License
757 stars 55 forks source link

Modules with - in name do not work #45

Closed michaeldewayneharris closed 9 years ago

michaeldewayneharris commented 9 years ago

npm install gulp-nunjucks-render

var $ = require('gulp-load-plugins)();

no way to access $.nunjucks-render

also $['nunjucks-render'] is undefined

it would be nice if it would just remove the dash and load it so that you can access via $.nunjucksrender

michaeldewayneharris commented 9 years ago

It looks like they do work via $.nunjucksRender removing the dash and uppercasing the letter after the dash. This should probably be added to the documentation

jackfranklin commented 9 years ago

It is documented, within the options code block example:

    camelize: true, // if true, transforms hyphenated plugins names to camel case
michaeldewayneharris commented 9 years ago

I missed that! sorry for the false report!