Refactoring and some breaking changes
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 writegeneramba gen Module template_name --project_targets Target1,Target2
(PR #137). -
Renamed rambaspec parameter
file_name
tocustom_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
tois_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
andproject_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)