Search packages, repositories and app categories

GitHub repositoryIteo/injecteo

injecteo

Iteo/injecteo open-source repository details.

injecteo project cover
Stars
12
Forks
2
Last push (UTC)
Jan 30, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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
iteo GitHub avatar
GitHub author

iteo ↗

LanguagesDartRubyHTMLSwiftShellKotlinObjective-C

Packages published by this repository

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗