dwyl / abase

:house: A (solid) Base for your Web Application.
9 stars 0 forks source link

Using Plugin inside Plugin #32

Closed jrans closed 7 years ago

jrans commented 7 years ago

We'll be splitting work into multiple plugins, that may need to use each other. Whats the best practise?

Possible answer?

exports.register = function (server, options, next) {
  server.dependency('dwyl-pg-connection', function(server, next) {
    next();
  });
  next();
};
samhstn commented 7 years ago

I think modularising abase into multiple plugins which get registered is a good idea.

Possible sub plugins might be:

'abase-db'
'abase-routes'
'abase-validation'
'abase-render'
'abase-permissions'

As discussed in #50 by @eliascodes