Skip to content

Adding dart build #51165

Open
Open
@laoshaw

Description

@laoshaw

dart run will automatically do pub-get and compile and run, which is nice and similar to cargo-run or go-run.

dart compile exe -- needs to specify entry point and needs a separate pub-get step, tedious, but fine.

since dart-run respects pubspec.yaml and does what it needs to do, can we add dart build that also respects pubspec.yaml and auto builds some default output, e.g. exe, or multiple output, e.g. exe and aot, whatever is the most popular ones as the defaults?

this way the dart toolchain is also very consistent with others, e.g. rust and golang as mentioned above.

Thanks.

Metadata

Metadata

Assignees

Labels

area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-compileIssues related to the 'dart compile' tool

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions