Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Mason Brick for Flutter Template #13

Open
Erengun opened this issue Nov 7, 2023 · 0 comments
Open

Create Mason Brick for Flutter Template #13

Erengun opened this issue Nov 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Erengun
Copy link
Owner

Erengun commented Nov 7, 2023

Hello everyone,

I'm excited to announce that I'll be taking on the task of creating a Mason Brick for our Flutter boilerplate template! This will make it easier for developers to use our template as a reusable template called a brick, using the power of Mason CLI.

Here's an overview of the steps I'll be following to create the Mason Brick:

  1. Install Mason CLI: If you haven't already, please install Mason CLI by running the following command:

    dart pub global activate mason_cli
    
  2. Initialize Mason: In the project directory, I'll initialize Mason by running:

    mason init
    

    This will generate a mason.yaml file and a .mason directory.

  3. Create the Mason Brick: I'll use the Mason CLI to create a new brick for our Flutter boilerplate template. For example, I'll create a brick called flutter_boilerplate by running:

    mason new flutter_boilerplate
    

    This command will create a new directory called flutter_boilerplate with a brick.yaml file inside it. I'll add the necessary template files and variables to this directory.

  4. Add the Brick to mason.yaml: After creating the Mason Brick, I'll add it to the mason.yaml file in the project directory. For example:

    bricks:
      flutter_boilerplate:
        path: ./flutter_boilerplate/
  5. Publish the Brick (Optional): If we want to make the Mason Brick available to others, we can publish it to a Git repository and reference it in the mason.yaml file. This will allow other developers to easily use our Flutter boilerplate template as a Mason Brick.

By creating a Mason Brick for our Flutter boilerplate template, we'll provide developers with a convenient and standardized way to generate new projects based on our template. This will enhance the reusability and accessibility of our template, making it easier for people to use and contribute to.

I'll keep you all updated on my progress and will be happy to answer any questions or receive any suggestions along the way. Let's make our Flutter boilerplate template even more powerful and user-friendly!

Best,

@Erengun Erengun added the enhancement New feature or request label Nov 7, 2023
@Erengun Erengun self-assigned this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant