Closed RezMike closed 3 years ago
It's a simple implementation to support including/excluding files in yaml file based on global params asked during shaper-cli execution.
Example:
globalParams: packageName: dev.icerock.app feature: auth screen: Auth addFragment: false files: - pathTemplate: 'android-app/src/main/java/{{dts packageName}}/feature/{{dts feature}}/{{dts screen}}Fragment.kt' contentTemplateName: fragment/fragment.kt.hbs include: '{{addFragment}}' - pathTemplate: 'android-app/src/main/res/layout/fragment_{{cts screen}}.xml' contentTemplateName: fragment/layout.xml.hbs include: false
we should support new directory-templates too. for example use special helper to mark some file-path as excluded
I had to open a new PR with a similar feature, but other implementation - #23.
It's a simple implementation to support including/excluding files in yaml file based on global params asked during shaper-cli execution.
Example: