make
Description
Section titled “Description”make runs brick-based generators.
dart run stackchain make <type> <name> [options]| Type | Output |
|---|---|
feature |
Routes to the vertical slice generator (same as feature) — not the GetX-style brick under bricks/feature/ |
page |
lib/shared/pages/<name>_page.dart then auto-sync (analyze skipped) |
widget |
lib/core/widgets/<name>.dart |
service |
lib/core/services/<name>_service.dart |
Options
Section titled “Options”| Option | Description |
|---|---|
--name, -n |
Name |
--var, -V key=value |
Extra template vars (repeatable) |
--overwrite, -f |
Overwrite |
--dry-run |
Preview |
--skip-analyze |
Skip analyze |
Examples
Section titled “Examples”dart run stackchain make page onboardingdart run stackchain make widget app_chipdart run stackchain make service syncdart run stackchain make page checkout -V title=Checkout