js_cli 0.1.2 js_cli: ^0.1.2 copied to clipboard
This project is one CLI for integrate Flutter and Dart with Clean Architecture
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate js_cli
Use it
The package has the following executables:
$ js_cli
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add js_cli
With Flutter:
$ flutter pub add js_cli
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
js_cli: ^0.1.2
Alternatively, 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:js_cli/app_module.dart';
import 'package:js_cli/controller/design_pattern/design_pattern_controller.dart';
import 'package:js_cli/controller/generate_layer_controller.dart';
import 'package:js_cli/controller/get_version_controller.dart';
import 'package:js_cli/controller/help_command_controller.dart';
import 'package:js_cli/controller/init_controller.dart';
import 'package:js_cli/controller/microfrontend/base_app_controller.dart';
import 'package:js_cli/controller/microfrontend/micro_app_controller.dart';
import 'package:js_cli/controller/microfrontend/micro_commons_controller.dart';
import 'package:js_cli/controller/microfrontend/micro_core_controller.dart';
import 'package:js_cli/controller/microfrontend/microfrontend_controller.dart';
import 'package:js_cli/core/commands/localization.dart';
import 'package:js_cli/core/errors/file_exists_error.dart';
import 'package:js_cli/core/files/generate_new_file.dart';
import 'package:js_cli/core/files/generate_replace_file.dart';
import 'package:js_cli/core/files/generate_scripts.dart';
import 'package:js_cli/core/utils/constants.dart';
import 'package:js_cli/core/utils/dialog_utils.dart';
import 'package:js_cli/core/utils/directory_utils.dart';
import 'package:js_cli/core/utils/global_variable.dart';
import 'package:js_cli/core/utils/output_utils.dart';
import 'package:js_cli/core/utils/reserved_words.dart';
import 'package:js_cli/core/utils/triggers_utils.dart';
import 'package:js_cli/core/utils/validate_arguments.dart';
import 'package:js_cli/core/utils/wellcome_message.dart';
import 'package:js_cli/models/dtos/new_file_dto.dart';
import 'package:js_cli/models/dtos/replace_dto.dart';
import 'package:js_cli/models/entities/design_pattern/controller_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/datasource_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/datasource_interface_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/dto_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/entity_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/page_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/repository_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/repository_interface_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/usecase_design_pattern.dart';
import 'package:js_cli/models/entities/design_pattern/usecase_interface_design_pattern.dart';
import 'package:js_cli/models/entities/microfrontend/base_app.dart';
import 'package:js_cli/models/entities/microfrontend/micro_app.dart';
import 'package:js_cli/models/entities/microfrontend/micro_commons.dart';
import 'package:js_cli/models/entities/microfrontend/micro_core.dart';
import 'package:js_cli/models/entities/microfrontend/microfrontend.dart';