搜尋套件、儲存庫與 APP 分類

套件詳情v0.1.3

mason

一個 Dart 模板產生器,可幫助團隊快速且一致地產生檔案。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
119萬
喜歡數
842
Pub 分數
160

安裝套件

flutter pub add mason

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Mason 是一個 Dart 模板產生器,旨在幫助開發團隊快速且一致地建立檔案。它允許使用者定義可重複使用的程式碼、設定或專案結構範本,確保專案之間的一致性。透過命令列互動,Mason 簡化了在 Flutter 應用中產生畫面、模型或服務等重複性任務。它能無縫整合至現有工作流程,並支援 Android、iOS、Web、macOS、Windows 及 Linux 等多個平台。憑藉其可擴充的架構與開源基礎,Mason 在維持團隊環境一致性之餘,提升生產力。

適用情境

  • 產生樣板程式碼
  • 標準化專案結構
  • 自動化文件建立
  • 新開發人員入職
  • 保持一致的編碼模式
  • Scaffolding Flutter 模塊

主要特色

  • 基於模板的檔案產生
  • 命令列介面
  • 可擴充的範本系統
  • 跨平台支援
  • 團隊範圍的一致性
  • 與 Flutter 工作流程的整合

適合對象

  • Flutter 開發團隊
  • 大規模應用腳手架
  • CI/CD 流水線
  • 新專案設定
  • 開發者入門

使用建議

  • 需要初始模板設定
  • 範本撰寫的學習曲線
  • 僅限檔案產生(不含邏輯)
  • 依賴社群維護的範本
  • 不適用於執行時間代碼產生

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

mason logo

mason coverage License: MIT Powered by Mason


A collection of packages that enable developers to create and consume reusable templates called bricks.

Mason Demo

Packages

Package Pub
mason pub package
mason_api pub package
mason_cli pub package
mason_logger pub package

Quick Start

# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli

# 🚀 Initialize mason
mason init

# 📦 Install your first brick
mason add hello

# 🧱 Use your first brick
mason make hello

Documentation

View the full documentation here.

Video Tutorials

Package of the Week by Flutter Observable Flutter: Building a Mason brick by Flutter
mason (Package of the Week) Observable Flutter: Building a Mason brick
Meet Mason: Flutter Vikings 2022 by Flutter Community Felix Angelov Demos Mason by Very Good Ventures
Meet Mason: Intro to Templating and Custom Code Generation Mason Video Tutorial

Badge

Add a markdown badge to indicate your project is powered by mason → Powered by Mason

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

所屬分類

依賴

依賴清單 14 項

原始碼儲存庫

使用此套件的專案

所在榜單