hapipal/boilerplate

Add Sequelize support as flavor

Nargonath opened this issue · 6 comments

I saw that you offer knex and objection support but what do you think of adding Sequelize support as flavor as well?

I could definitely look into making a PR if that's something you'd consider.

Thanks for the great project.

A flavor is simply a single commit that can be cherry-picked into a project, so it's a piece of cake to use flavors from all different sources through git. We maintain a branch for each flavor, then when it's time to release, we just squash the whole branch down into a single commit and tag it so that can be cherry-picked easily.

I'd be happy to document our flavor release process and keep a list of community flavors that work nicely with the pal boilerplate, if you're interested in maintaining a sequelize flavor on a fork of the pal boilerplate 👍

Interesting I would have never thought of such solution. I'm not sure I fully grasp it yet but I'll definitely look into making such flavor.

This conversation continued in slack. For those interested in maintaining their own flavors, here is the manual release process https://gist.github.com/devinivy/d0d403c85ba8e2b1eb59f01a6b497a24

Yeah sorry I forgot about this issue. In fact we are considering migrating to Objection so we can use hpal 😃

Hey, no problem! While I think that is great news for you and your team, I also hope like you don't feel like you have to use Objection in order to take advantage of all the other tools and patterns that are a part of hapi pal. Here's an example in the haute-couture docs that shows how to use another ORM (in this case, Mongoose) with haute-couture and the hpal CLI: https://github.com/hapipal/haute-couture/blob/master/API.md#amendment-example

Yeah you are right, we don't feel like we have to. We are always happy to try something new as well so we can better assess what we like best and why. Thanks for the resource.