Skip to content

asset_optimizer Pro

Image asset optimization (SVG, PNG, JPEG). Adds the assets 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 asset_optimizer

Non-interactive (CI)

bash
archipelago generate asset_optimizer --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/
    └── asset_optimizer/
        ├── lib/
        │   ├── asset_optimizer.dart
        │   └── src/
        │       └── assets_command.dart     # SVG, PNG, JPEG optimization
        └── pubspec.yaml

Built by Banua Coder