FLUTTER ECOSYSTEM

Iteo/injecteo

Iteo/injecteo open-source repository details.

injecteo 專案封面
Stars
12
Forks
2
最近推送(UTC)
2024年1月30日
專案狀態
未封存
iteo GitHub avatar
GITHUB Organization

iteo ↗

語言DartRubyHTMLSwiftShellKotlinObjective-C

此儲存庫發佈的套件

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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