Skip to content

Commit

Permalink
Migrate sample async templates to new template system
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-pod committed Feb 20, 2024
1 parent f548b17 commit 927edf8
Show file tree
Hide file tree
Showing 15 changed files with 68 additions and 79 deletions.
20 changes: 20 additions & 0 deletions templates_library/async/Coordinator/template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "coordinator"
description: "Generate NameCoordinator"
variables:
project: "*.xcodeproj"
base_path: "Coordinator"
target: ""
parameters:
- argument: "name"
removeSuffix: "Coordinator"
- flag: "delegate"
short_name: "d"
template_variable_name: "generate_delegate"
description: "Generate delegate protocols when provided"
generated_elements:
- name: "coordinator"
file: "{{ name }}Coordinator.swift"
template: "coordinator"
variables: {}
template_file_source:
coordinator: "coordinator.mustache"
File renamed without changes.
48 changes: 48 additions & 0 deletions templates_library/async/Presenter/template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "presenter"
description: "Generate NamePresenter, NamePresenterImplementation, NameViewContract and NameViewController"
parameters:
- argument: "name"
removeSuffix: "Presenter"
- flag: "delegate"
short_name: "d"
template_variable_name: "generate_delegate"
description: "Generate delegate protocols when provided"
variables:
project: "*.xcodeproj"
base_path: "App"
target: ""
generated_elements:
- name: "ui_view_group"
group: "{{ name }}/UI/View"
variables: {}
- name: "view_controller"
file: "{{ name }}/UI/ViewController/{{ name }}ViewController.swift"
template: "viewController"
variables: {}
- name: "view_contract"
file: "{{ name }}/UI/{{ name }}ViewContract.swift"
template: "viewContract"
variables: {}
- name: "presenter"
file: "{{ name }}/Presenter/{{ name }}Presenter.swift"
template: "presenter"
variables: {}
- name: "presenter_implementation"
file: "{{ name }}/Presenter/{{ name }}PresenterImplementation.swift"
template: "presenterImplementation"
variables: {}
- name: "model_group"
group: "{{ name }}/Model"
variables: {}
code_snippets:
- name: DependencyProvider
template: "dependency_provider"
- name: PresenterAssembly
template: "presenter_assembly"
template_file_source:
viewController: "view_controller.mustache"
viewContract: "view_contract.mustache"
presenter: "presenter.mustache"
presenterImplementation: "presenter_implementation.mustache"
dependency_provider: "dependency_provider.mustache"
presenter_assembly: "presenter_assembly.mustache"
13 changes: 0 additions & 13 deletions templates_library/async/interactor.mustache

This file was deleted.

5 changes: 0 additions & 5 deletions templates_library/async/interactor_assembly.mustache

This file was deleted.

22 changes: 0 additions & 22 deletions templates_library/async/interactor_implementation.mustache

This file was deleted.

13 changes: 0 additions & 13 deletions templates_library/async/repository.mustache

This file was deleted.

6 changes: 0 additions & 6 deletions templates_library/async/repository_assembly.mustache

This file was deleted.

20 changes: 0 additions & 20 deletions templates_library/async/repository_implementation.mustache

This file was deleted.

0 comments on commit 927edf8

Please sign in to comment.