felangel / mason

Tools which allow developers to create and consume reusable templates called bricks.

Home Page:https://docs.brickhub.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: Create folders from array

feinstein opened this issue · comments

Description

It is common to have Flutter projects with many different platforms, such as Andrid, iOS, etc. and it would be nice to be able to select what platforms we want from an array, then generate only the folders that are contained in the array.

I tried to find an example on how to achieve this, but I couldn't find any, nor to come up with some mustache template to make it work.

Requirements

  • Create a folder only if the folder name is included in the variable array.

Hi @feinstein 👋
Check out the plugin brick https://github.com/felangel/mason/tree/master/bricks/plugin

I believe it does what you’re asking for. Let me know if that helps!

Hi @felangel, no it doesn't. In the Brick plugin I need to define 1 variable for each platform. But what I want is an array, where I can select the platforms using the keyboard.