archit 0.1.0
archit: ^0.1.0 copied to clipboard
A powerful CLI tool to scaffold Flutter projects with clean architecture.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate architUse it
The package has the following executables:
$ archit
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add architWith Flutter:
$ flutter pub add architThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
archit: ^0.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:archit/commands/cli.dart';
import 'package:archit/commands/create_project_command.dart';
import 'package:archit/commands/feature_manager_command.dart';
import 'package:archit/generators/app_generator.dart';
import 'package:archit/generators/core_generator.dart';
import 'package:archit/generators/feature_generator.dart';
import 'package:archit/generators/pubspec_generator.dart';
import 'package:archit/generators/usecase_generator.dart';
import 'package:archit/models/project_config.dart';
import 'package:archit/utils/console.dart';
import 'package:archit/utils/fs_utils.dart';