Nice to see you here, dear Developer. This is a root of injecteo
service locator / dependency injection generator project.
Repository contains several folders:
-
packages
injecteo
: Dependency Injection annotations (@singleton, @inject, @InjectionModule, @externalModule), abstract class forServiceLocator
pattern and the implementation usingget_it
packageinjecteo_generator
: Actual code generator which scans project forinjecteo
annotations and generate top-level configuration function with additionalInjectionModule
classesinjecteo_models
: Internal models used by generator. RepresentsDependencyConfig
with required properties like:
import name, type and implementation definition
-
example
basic
: Simple counter app, which shows how to annotate classes forinjecteo_generator
and configure dependenciesfeature_packages
: Focuses onInjectionModule
- a way to split features into multiple packages and integrate them withMelos
todeo
: Advanced to-do application with multiple dependencies registered fordev
andprod
environments.
For details, please see each folder README files.
Packages use Melos with usePubspecOverrides: true
.
Local packages are linked via Melos-generated pubspec_overrides.yaml
.
melos bs
melos run get
melos run generate
melos run format
Before commit
melos run format
melos run test