dart2js tool, which is itself written in Dart and lives in the
bin subfolder of
dart-sdk. The tool is also nicely integrated in Dart Editor.
pubspec.yamlfile and select Pub Build (generates JS) from the context menu. You can also click on the Tools menu while selecting the same file, and then on Pub Build.
The first option invokes the
pub serve command to start a local web server invoking dart2js along its way in the checked ...