To develop, install Dartlang. Once all that is sorted, then:
$ cd dart_frontend
$ pub get
$ pub global activate grinder # Used in Makefile to format code and transcompile to JS
Grind is installed in $HOME/.pub-cache/bin
. Please add this to your PATH.
To do local development, edit apiBaseUrl
in lib/configuration.dart
to point
to an app engine instance with the API serving with CORS headers, and then:
$ pub serve &
$ open http://localhost:8080/
To publish, first change apiBaseUrl
in lib/configuration.dart
to /
, then
build and deploy:
$ make install
$ goapp deploy ../app/app.yaml
The Atom editor with the
dartlang package. Install
atom, then install dartlang
, either in the Preferences
pane (Atom|Preferences...), or from the command line:
$ apm install dartlang
This gives you syntax highlighting, code hints, and click to navigate. When the
underlying dart
analyzer gets confused, re-analyze sources
(Packages|Dart|Re-analyze sources), and if that fails,
re-start the analyzer (Packages|Dart|Analysis Server Status|Shutdown;Start).
For dart's standard library - things imported like import 'dart:foo';
there
is the API Reference. For
third party dependencies installed via pub, there
is dartdocs. Of particular interest in this project: