archify 1.1.0
archify: ^1.1.0 copied to clipboard
A CLI tool for generating clean architecture structure in Flutter projects.
1.1.0 #
Archify is now driven entirely by a single archify.yaml file you control, instead of hardcoding one architecture.
New commands
init— creates the defaultarchify.yaml. Running it again when the file already exists just reports that instead of overwriting it.configure— readsarchify.yamland scaffolds the project from it. Createsarchify.yamlfirst (viainit) if it doesn't exist yet, then continues in the same run.templates— lists every built-in template key, split into what's in the defaultarchify.yamland what's opt-in. Reads from the same registryconfigure/generateuse, so it can't drift out of date.reset-project— modeled on Expo'snpm run reset-project. Resetslib/to a blank single-screen starter, optionally moving your existing code toexample/first instead of deleting it.
Breaking changes
configureno longer scaffolds a project immediately — seeinit/configureabove. Automation/CI relying on the old one-shot behavior now needs to callinitthenconfigure.generate <feature>is driven byarchify.yaml'sfeature_root/feature_templatekeys instead of a hardcoded data/domain/presentation layout.archify.yamluses a simpler nested-mapping schema instead of the old{name, type, children, template}list. A key with nested keys is a folder; a key mapped to a template name is a file:
Anystructure: lib: core: api: shared: theme: app_colors.dart: theme_colorsarchify.yamlwritten before this version needs converting to this shape — rundart run archify initin an empty folder to see the new format.- Archify no longer edits
pubspec.yaml.configureprints the exactflutter pub add ...command instead, for the packages the optional Cubit/Bloc templates need. - The default architecture is leaner:
core/config, the dio/navigation/route/storage helpers undershared/utils,injection_container.dart, and a generated feature's Cubit/state files are no longer scaffolded by default. All of them are still available — add the template name back intoarchify.yamlyourself (dart run archify templateslists them).main.dart,app.dart, androot.dartno longer import any third-party package; MultiBlocProvider, error logging, local storage, and DevicePreview are left as commented-out examples.
Also
- Removed the now-unused
yaml_editandpathdependencies. - Cleaned up generated boilerplate — files now carry at most one short "add your X here" comment instead of speculative example code.
- Documented that Archify is architecture-agnostic, not DDD-specific: rewriting
structure/feature_templateto MVVM, MVC, or anything else works with zero code changes.
1.0.8 #
- Added custom command to generate fully custom features based on YAML templates.
- Custom feature generation now supports dynamic placeholders like
{feature_name}in folder and file names. - Improved YAML parsing and validation for nested folders and files.
- Added backup of existing feature folders if the feature already exists before regeneration.
- Updated README with custom command usage examples.
- Minor improvements and bug fixes in
fs_utilsandcustom_creator.