moleculerjs / moleculer-cli

:herb: Command line tool for Moleculer
http://moleculer.services/docs/moleculer-cli.html
MIT License
48 stars 28 forks source link

Feat/create mixin #61

Open devalexandre opened 2 years ago

devalexandre commented 2 years ago

Create a mixin , using js template and typescript template

icebob commented 2 years ago

Thanks the PR, but my problem is that, you created a well-known DB mixin as a default mixin. If I'm a developer and exec moleculer create mixin I expect, it will be a common skeleton mixin instead of full logic. By the way, most of developers uses project-template which contains this DB mixin, by default.

devalexandre commented 2 years ago

Thanks the PR, but my problem is that, you created a well-known DB mixin as a default mixin. If I'm a developer and exec moleculer create mixin I expect, it will be a common skeleton mixin instead of full logic. By the way, most of developers uses project-template which contains this DB mixin, by default.

I understand, the idea would be not to use the Db Mixin, but to create your own mixin. I will make the necessary changes.

devalexandre commented 2 years ago

@icebob , I used mongoose to assemble the example, if you have any improvement just leave a comment :)

devalexandre commented 2 years ago

@icebob any comments?

devalexandre commented 1 year ago

The problem is that the mixin name is regular, but the implementation is not regular and is very specific.

I really didn't understand what you mean

devalexandre commented 10 months ago

this PR don't is interesting ? @icebob