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
| Variable | Type | Default | Description |
|---|---|---|---|
| appName | string | MyApp | The name of your application |
| isForMonorepo | boolean | true | Whether this is being generated as part of a monorepo |
Usage
Interactive
bash
archipelago generate size_guardNon-interactive (CI)
bash
archipelago generate size_guard --config my_config.jsonConfig 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