Skip to content

Iteo/injecteo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

injecteo

melos   Test status   pub package   GitHub license  


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 for ServiceLocator pattern and the implementation using get_it package
    • injecteo_generator: Actual code generator which scans project for injecteo annotations and generate top-level configuration function with additional InjectionModule classes
    • injecteo_models: Internal models used by generator. Represents DependencyConfig with required properties like:
      import name, type and implementation definition
  • example

    • basic: Simple counter app, which shows how to annotate classes for injecteo_generator and configure dependencies
    • feature_packages: Focuses on InjectionModule - a way to split features into multiple packages and integrate them with Melos
    • todeo: Advanced to-do application with multiple dependencies registered for dev and prod environments.

For details, please see each folder README files.

Development

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