Questions on using dart without dart editor
dart.js
is contained in the browser package. Once you have added this package to pubspec.yaml and run pub install
you can add the script file to your html.
<script src="packages/browser/dart.js"></script>
Assuming you have downloaded the dart bundle you will find all the binaries under $DART_HOME/dart-sdk/bin
.
1) You need to call dart2js
or pub build
for generating JS from Dart
More information about generating Javascript Dart Package Management via dart2js
2) This depends how you installed Dart.I installed by just unpacking the downloaded archiv which contains
install-dir|- dart-sdk |- lib |- async |- collection |- ... |- bin |- dart |- dart2js |- dartanalyzer |- pub |- ...