Skip to content

Refactoring and some breaking changes

Compare
Choose a tag to compare
@etolstoy etolstoy released this 05 Sep 06:43
· 66 commits to develop since this release

Just after we released our first non-beta version, we realized that time for refactoring has come. Sorry for some inconveniences, but you'll have to update your templates syntax.

Breaking changes

  • Renamed gen command --module-targets option to --project-targets. Now you should write generamba gen Module template_name --project_targets Target1,Target2 (PR #137).

  • Renamed rambaspec parameter file_name to custom_name. Now you should write in rambaspec something like this (PR #137):

    - {custom_name: "{{ prefix }}{{ custom_parameters.my_value }}{{ module_info.file_basename }}", name: View/ViewInput.h, path: Code/View/view_input.h.liquid}
  • Replaced rambaspec parameter file_type to is_resource. Now you should write in rambaspec something like this (PR #137):

    {name: Resources/MyJson.json, path: Resources/MyJson.json.liquid, is_resource: true}. 

    Then Generamba adds this file in project like resource, and not like file reference.

Enhancements

  • Added an ability to use all properties from Rambafile and command options in rambaspec files (Issue #128)
  • Added new property to Rambafile - product_module_name for Swift test templates (PR #139)
  • Made project_file_path and project_group_path not mandatory (Issue #144).
  • Updated the appearance of gen command output (Issue #142)
  • Added an extra question to setup command (Issue #126)
  • Fixed code style (PR #133)

Bugfixes

  • Fixed an error which occurred when there was an extra / in file path (Issue #129).
  • Fixed template installation from a remote git repo (Issue #135)