Skip to content

"Mason CLI: Simplify your Flutter development workflow with Mason CLI. This command-line tool streamlines code generation, making it easier to create consistent and maintainable Flutter projects. Boost your productivity and code quality with Mason CLI."

Notifications You must be signed in to change notification settings

munawerdev/mason_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧱 Mason CLI - Flutter Code Generation

Powered by Mason Flutter

A collection of Mason bricks for Flutter development with TDD (Test-Driven Development) support following Clean Architecture principles.

📦 Available Bricks

Brick Description Install
mason_tdd Complete Flutter architecture with Clean Architecture, Bloc, Dependency Injection, and Authentication mason add --global mason_tdd
mason_tdd_folder Feature folder generator with Cubit/Bloc setup mason add --global mason_tdd_folder

🚀 Quick Start

Install Mason CLI

dart pub global activate mason_cli

Add Bricks

# Add from BrickHub (Recommended)
mason add --global mason_tdd
mason add --global mason_tdd_folder

# Or from Local Path (if you cloned this repository)
mason add mason_tdd --source path --path ./mason_tdd
mason add mason_tdd_folder --source path --path ./mason_tdd_folder

# Or from Git Repository (this repository)
mason add --global mason_tdd --git-url https://github.com/munawerdev/mason_cli.git --git-path mason_tdd
mason add --global mason_tdd_folder --git-url https://github.com/munawerdev/mason_cli.git --git-path mason_tdd_folder

Generate Code

# Complete TDD setup
mason make mason_tdd

# Generate feature folder
mason make mason_tdd_folder --name user_profile -o lib/features

✨ Features

  • Clean Architecture with Domain-Driven Design
  • State Management with Flutter Bloc/Cubit
  • Dependency Injection with GetIt
  • Network Layer with Dio interceptors
  • Authentication System with secure storage
  • Theming and UI components library
  • Responsive Design with flutter_screenutil
  • TDD Support with built-in test structure

📚 Documentation

🔧 Management Commands

# List all global bricks
mason list --global

# Remove a brick
mason remove -g mason_tdd

# Upgrade all bricks
mason upgrade --global

🤝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

📄 License

MIT License - see LICENSE for details.


Powered by Mason 🧱

About

"Mason CLI: Simplify your Flutter development workflow with Mason CLI. This command-line tool streamlines code generation, making it easier to create consistent and maintainable Flutter projects. Boost your productivity and code quality with Mason CLI."

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages