eManPrague / frui.ts

Pragmatic MVVM frontend framework
MIT License
14 stars 5 forks source link

Generator should support TSyringe DI #25

Open gius opened 3 years ago

gius commented 3 years ago

Support https://github.com/microsoft/tsyringe as alternative DI container

gius commented 2 years ago

Other alternatives to consider. Especially if avoiding decorators is possible.

https://docs.deepkit.io/english/dependency-injection.html https://github.com/wessberg/DI https://github.com/nicojs/typed-inject https://github.com/typestack/typedi

gius commented 1 year ago

If using https://github.com/wessberg/DI, there is no need to generate any configuration at all. Simple registration with lifetime scope is better done manually. However, the code generation needs to be adapted to Vite.

gius commented 1 year ago

So far, https://github.com/nicojs/typed-inject seems like a good solution.

gius commented 1 year ago

This might help to use wessberg/DI