di-decorators icon indicating copy to clipboard operation
di-decorators copied to clipboard

1.0

Open lgvo opened this issue 9 years ago • 2 comments

Started writing a simple di for es7 decorators this evening. stumbled upon yours. probably will tinker with this a bit. add a few features. should be able to take care of the items in your roadmap.

Already done this exercise once but the key here is to keep it fairly simple. There are and will be plenty more DI libs using decorators, however when you need something simplistic for a lib you may be writing I think its key at least a large majority of the time to have something actually scaled back.

Like ur idea of defining own method for resolvers (think you call them providers, resolvers typically the term used), to be honest hadn't thought of doing that so plus 1 there.

Let me know your thoughts.

origin1tech avatar Oct 12 '15 05:10 origin1tech

Hi, thank you for your interest!

About the roadmap:

  • TypeScript Support: I do think that the code may just works with TypeScript. What I am planning here is to create the same suite of test to validate that. And create the type definitions in another file too.
  • Browser Packages: I am only using the lib for BackEnd for now. So any support for browser packages are very welcome.

Pull requests are welcome! Somethings to take in consideration:

  • About new features, please add a issue about the ideias before.
  • Mind the test coverage and code complexity, if you can do it with TDD probably will come with both.
  • Try to use only ES5.

This code is a part of a large "framework" that I'm using for development, so I'm trying to export every part of that as a little library that can be used alone. If you are interest and want to get the big picture take a look at the restful-express

And if you like the library please Star ther project ;]

Best regards!

lgvo avatar Oct 12 '15 17:10 lgvo