gulp-shrt
Version:
Make gulp syntax shorter
1 lines • 721 B
JavaScript
;function Plugin(t){this.name,this.args,this.events,this.pipe}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};Plugin.prototype.init=function(t){var e,o,n=t;if("object"===("undefined"==typeof t?"undefined":_typeof(t))){for(var i in t)"on"===i?o=t[i]:"pipe"===i?this.pipe=t[i]:(n=i,e=t[i]);e instanceof Array||(e=[e])}if("string"!=typeof n&&!this.pipe)throw new Error("No module name was given for that task. Try {moduleName: args, (on: {error: fn, ...})} or 'moduleName' instead");return this.name="gulp-"+n,this.args=e||[],this.events=o,this},module.exports=Plugin;