saviogl / generator-sails-plugin-hook

Yoeman generator to create sails hooks that plugs it self in sails structure
2 stars 0 forks source link

Override possibilities #1

Open jaumard opened 9 years ago

jaumard commented 9 years ago

Hi,

Great job on this generator ! I have make one here : https://github.com/jaumard/sails-util-mcvsloader It give the possibility to override Controllers/Services/Models. It would be cool if you can have this functionality to cause your module is more sophisticate than mine :)

saviogl commented 9 years ago

Hello Jaumard,

When I developed this generator I had in my mind that merging would be more suitable and helpful than overriding, so in your plugin you could make sure that a specific thing, for instance, a model would be created/extended for the things that it needs, but would also allow for other plugins/main sails app to manipulate the same model as it's will.

I think that it might be indeed a valid discussion, and keep in mind would be highly appreciated if you fork the repo and send a pull request.

Thanks