GithubHelp home page GithubHelp logo

shyamexe / bricks-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 135 KB

Streamline Flutter project setup and expansion with Mason Bricks: a collection of reusable templates and generators for efficient code scaffolding

Kotlin 0.92% Swift 4.76% Objective-C 0.26% Dart 81.19% HTML 12.87%
bricks flutter-template mason

bricks-cli's Introduction

Mason bricks 🧱

Mason reusable bricks for efficient project scaffolding.

Getting started 🚀

Adding a brick 🧱️

To add a brick, you have a few options:

# 🎯 Activate Mason CLI (if not done already):

dart pub global activate mason_cli
# Add a brick from a Git URL:

mason add <BRICK_NAME> --git-url https://github.com/shyamexe/bricks-cli --git-path path/to/<BRICK_NAME>
# Add a brick globally from a Git URL:

mason add -g <BRICK_NAME> --git-url https://github.com/shyamexe/bricks-cli --git-path path/to/<BRICK_NAME>
# For instance, to add the flutter-package brick:

mason add -g flutter-template --git-url https://github.com/shyamexe/bricks --git-path flutter-template

Available Bricks ✨

name description
flutter-package Create a new Flutter project with basic structure
bloc Generate a new Bloc
cubit Generate a new Cubit
feature-block Generate a new module block

flutter-template Brick Installation

# Add flutter-template from GitHub
mason add -g flutter-template --git-url https://github.com/shyamexe/bricks --git-path flutter-template

# List all globally installed bricks
mason ls -g

# Generate code using the brick
mason make flutter-template

# Remove the brick (global)
mason remove -g flutter-template

bloc/cubit Installation

# Globally add cubit brick from GitHub
mason add -g cubit --git-url https://github.com/shyamexe/bricks --git-path cubit

# Generate a new Cubit
mason make cubit --name counter --style equatable

To load the brick inside your project:

1 Create mason/mason.yaml in your project root:

bricks:
  cubit:
    git:
      url: https://github.com/shyamexe/bricks-cli.git
      path: cubit

2 Run the following commands:

mason get

mason make cubit -o ..\Yoru\output\folder\  --name counter --style equatable

bricks-cli's People

Contributors

shyamexe avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.