chassis_forge_dart library

CLI helpers for working with Dart based projects

Functions

analyze(IShell shell) Future<void>
Analyzes the Dart source files for the current dart project
build(IShell shell, [String? config]) Future<void>
Builds the Dart source files for the current dart project
compile(IShell shell, String dartFile, [String executableType = 'kernel']) Future<void>
Compiles the specified dartFile into the target executableType
doc(IShell shell, {String output = 'doc', String format = 'html'}) Future<void>
Generates HTML documentation for the Dart Project into the specified output directory in the given format
format(IShell shell) Future<void>
Formats all Dart source files in the current directory using the Dart CLI
hasCli(IShell shell) bool
True if the current Shell has a reference to dart
installDependencies(IShell shell, {bool upgrade = false}) Future<void>
Installs dependencies for the current dart project
isBuildable(IShell shell) bool
True if the current folder contains a 'build.yaml' file.
isMissingCli(IShell shell) bool
True if the current Shell does not have a reference to dart
isProject(IShell shell) bool
True if the current folder contains a 'pubspec.yaml' file.
test(IShell shell) Future<void>
Unit Tests the Dart source files for the current dart project