Skip to content

size_guard Pro

File size threshold enforcement for monorepo workspaces. Adds the size-guard command to the base monorepo_toolkit.

Version: 1.0.0

Variables

VariableTypeDefaultDescription
appNamestringMyAppThe name of your application
isForMonorepobooleantrueWhether this is being generated as part of a monorepo

Usage

Interactive

bash
archipelago generate size_guard

Non-interactive (CI)

bash
archipelago generate size_guard --config my_config.json

Config Template

json
{
  "@appName": "The name of your application",
  "appName": "MyApp",
  "@isForMonorepo": "Whether this is being generated as part of a monorepo",
  "isForMonorepo": true
}

Generated Structure

devtools/
└── scripts/
    └── size_guard/
        ├── lib/
        │   ├── size_guard.dart
        │   └── src/
        │       ├── commands/
        │       │   ├── check_command.dart
        │       │   └── size_guard_command.dart
        │       ├── models/
        │       │   └── size_guard_config.dart
        │       ├── services/
        │       │   └── size_guard_service.dart
        │       └── size_guard_command.dart  # Top-level command
        └── pubspec.yaml

Built by Banua Coder