simbo / auto-plug Goto Github PK
View Code? Open in Web Editor NEWAuto-require plugin packages by prefix. (for i.e. Gulp, Grunt or other heavy plugin-dependent packages)
Home Page: https://www.npmjs.com/package/auto-plug
License: MIT License
Auto-require plugin packages by prefix. (for i.e. Gulp, Grunt or other heavy plugin-dependent packages)
Home Page: https://www.npmjs.com/package/auto-plug
License: MIT License
Get this when launching with a slush (gulp) file that relies on this library.
Here is the full output:
/web/node_test/slush-blueprints/node_modules/auto-plug/node_modules/defined-options/node_modules/validate-by-shorthand/lib/validate-value.js:16
if (is.string(validate)) {
^
TypeError: Property 'string' of object # is not a function
at validateValue (/web/node_test/slush-blueprints/node_modules/auto-plug/node_modules/defined-options/node_modules/validate-by-shorthand/lib/validate-value.js:16:12)
at AutoPlug.setOptions (/web/node_test/slush-blueprints/node_modules/auto-plug/lib/auto-plug.js:99:15)
at new AutoPlug (/web/node_test/slush-blueprints/node_modules/auto-plug/lib/auto-plug.js:89:10)
at module.exports (/web/node_test/slush-blueprints/node_modules/auto-plug/index.js:11:20)
at Object. (/web/node_test/slush-blueprints/tasks/categories.js:3:39)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Looks like one of the tests for a dependency of this library has failed (defined-options).
Just a small thing,
On the README for tip before pattern option you have a typo
require('auo-plug')
I think gulp users should be required to be explicit, i.e. require('auto-plug')('gulp')
.
I get that defaults are convenient, but I think in this case it leans too far towards magic. Also, it's favoritism that feels counter to the purpose of auto-plug, ie. to be 'the' way to auto-require plugins for anything. I think it should stick to its guns and be completely agnostic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.