moleculer-cli icon indicating copy to clipboard operation
moleculer-cli copied to clipboard

Feat/create mixin

Open devalexandre opened this issue 3 years ago • 6 comments

Create a mixin , using js template and typescript template

devalexandre avatar Apr 03 '22 13:04 devalexandre

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.

icebob avatar Apr 06 '22 17:04 icebob

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 avatar Apr 07 '22 00:04 devalexandre

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

devalexandre avatar Apr 09 '22 17:04 devalexandre

@icebob any comments?

devalexandre avatar May 23 '22 20:05 devalexandre

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 avatar Apr 23 '23 16:04 devalexandre

this PR don't is interesting ? @icebob

devalexandre avatar Sep 07 '23 19:09 devalexandre