You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need updates to minibase-is-registered and dush-promise plugins.
And probably update minibase-create-plugin
supports named plugins with .use('foobar', pluginFn) or .use(function foobar () {})
supports unnamed plugins .use((app) => {})
works on node 0.10 if options.Promise is passed or if ANY promise is detected in deps
never throws, emit error event and also can app.catch() errors
has .use, .on, .off, .once and .emit methods through dush
has .isRegistered through minibase-is-registered
has .then, .catch, .resolve and .reject through dush-promise
has .define and .delegate methods through dush-methods from minibase-is-registered
/*! * minibase <https://github.com/tunnckoCore/minibase> * * Copyright (c) Charlike Mike Reagent <@tunnckoCore> (https://i.am.charlike.online) * Released under the MIT license. */'use strict'vardush=require('dush')varextend=require('extend-shallow')varbetterUse=require('dush-better-use')// from `dush`:// .on// .off// .once// .emit// .use//// from `dush-better-use` (overrides the default `dush` .use):// .use//// from `minibase-is-registered`:// .isRegistered//// from `dush-methods` (registered at `minibase-is-registered`):// .define// .delegate//functionMiniBase(options){returndush().use(functionoptionsPlugin(app){app.options=extend({},options)returnapp}).use(betterUse())}module.exports=MiniBase
tunnckoCore
changed the title
Refactor and use dush
Refactor and use dush (v2)
Apr 1, 2017
Make it not rely on
this
and use the dush as core event emitterThe text was updated successfully, but these errors were encountered: