2 ms·
not really, dart-compile does not do pub-get automatically, while dart-run does. dart-build is basically a (pub-get + dart-compile) to be "consistent" with othe
by synergy20 4y ago
not really, dart-compile does not do pub-get automatically, while dart-run does. dart-build is basically a (pub-get + dart-compile) to be "consistent" with other modern languages such as 'cargo build' or 'go build'
dart_build ()
{
[[ -f pubspec.yaml ]] || return;
DART=$(grep ^name pubspec.yaml | awk '{print $2}');
dart pub get;
dart compile exe bin/"$DART".dart
}