Code Monkey home page Code Monkey logo

vanilla-stacked-bricks's Introduction

VanillaStackedBricks

This repository contains Mason bricks for clean architecture projects. It includes modules, views, integration tests, services, network components, and more.

Mason Demo

Table of Contents

View Brick

Mason Brick to create a new view in already existing feature or a as a new feature.

Setup Brick πŸš€

  1. Install mason_cli:
dart pub global activate mason_cli
  1. Activate view bricks
  • Using mason add command
mason add view
  --git-url https://github.com/GameOnAnil/vanilla-stacked-bricks.git
  --git-path bricks/view
  • Add directly to mason.yaml
bricks:
  view:
    git:
      url: 'https://github.com/GameOnAnil/vanilla-stacked-bricks.git'
      path: 'bricks/view'

How to use πŸš€

Command Line

Mason Demo

mason make view

The you will get prompt

modulename?
filename?

Variables for the Command Line ✨

Variable Description Type
modulename The name of feature / module this view belongs to String
filename Name of the view String

Generate File Structure

login_feature
 β”— views
 ┃ β”— login
 ┃ ┃ ┣ view_model
 ┃ ┃ ┃ β”— login_viewmodel.dart
 ┃ ┃ β”— login_view.dart

Integration Test Brick

Mason Brick to create a template for integration test

  1. Activate view bricks
  • Using mason add command
mason add view
  --git-url https://github.com/GameOnAnil/vanilla-stacked-bricks.git
  --git-path bricks/integration_test
  • Add directly to mason.yaml
bricks:
  view:
    git:
      url: 'https://github.com/GameOnAnil/vanilla-stacked-bricks.git'
      path: 'bricks/integration_test'

Variables for the Command Line ✨

Variable Description Type
modulename The name of feature / module this integration test belongs to String

Generate File Structure

integration_test
 β”— sample
 ┃ ┣ common
 ┃ ┃ β”— sample_common.dart
 ┃ ┣ finders
 ┃ ┃ β”— sample_finders.dart
 ┃ β”— sample_test.dart

Feature/Module Brick

Mason Brick to create a template for feature/module in our MVVM flutter architecture.

  1. Activate v_module bricks
  • Using mason add command from
mason add v_module
  • Add directly to mason.yaml from git
bricks:
  v_module:
    git:
      url: 'https://github.com/GameOnAnil/vanilla-stacked-bricks.git'
      path: 'bricks/v_module'

Variables for the Command Line ✨

Variable Description Type
module_name The name of feature / module this integration test belongs to String

Generate File Structure

 β”— πŸ“‚ui
 ┃ β”— πŸ“‚login
 ┃ ┃ ┣ πŸ“‚models
 ┃ ┃ ┃ β”— πŸ“œhello.md
 ┃ ┃ ┣ πŸ“‚repository
 ┃ ┃ ┃ β”— πŸ“œlogin_repository.dart
 ┃ ┃ ┣ πŸ“‚services
 ┃ ┃ ┃ β”— πŸ“œlogin_service.dart
 ┃ ┃ β”— πŸ“‚views
 ┃ ┃ ┃ β”— πŸ“œhello.md

vanilla-stacked-bricks's People

Contributors

gameonanil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.