OLD | NEW |
1 # Usage | 1 # Usage |
2 | 2 |
3 The [Dart Dev Compiler](README.md) (DDC) is an **experimental** | 3 The [Dart Dev Compiler](README.md) (DDC) is an **experimental** |
4 development tool and transpiler. In particular, the ES6 backend is | 4 development tool and transpiler. In particular, the ES6 backend is |
5 still incomplete, under heavy development, and not yet ready for | 5 still incomplete, under heavy development, and not yet ready for |
6 production use. | 6 production use. |
7 | 7 |
8 With those caveats, we welcome feedback. | 8 With those caveats, we welcome feedback. |
9 | 9 |
10 ## Installation | 10 ## Installation |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 local server via: | 56 local server via: |
57 | 57 |
58 $ dartdevc --server main.dart | 58 $ dartdevc --server main.dart |
59 | 59 |
60 ## Testing in Chrome Canary | 60 ## Testing in Chrome Canary |
61 | 61 |
62 Launch Chrome Canary at the URL shown by the above. You will need to | 62 Launch Chrome Canary at the URL shown by the above. You will need to |
63 explicitly enable ES6 (harmony) features: this can be done via the | 63 explicitly enable ES6 (harmony) features: this can be done via the |
64 command line. E.g., on a Mac: | 64 command line. E.g., on a Mac: |
65 | 65 |
66 $ /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Ca
nary --js-flags="--harmony-arrow-functions --harmony-classes --harmony-computed-
property-names" http://localhost:8080 | 66 $ /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Ca
nary --js-flags="--harmony" http://localhost:8080 |
67 | 67 |
68 Remember to open the Developer Tools to see the output of a print. | 68 Remember to open the Developer Tools to see the output of a print. |
69 | 69 |
70 DDC does not yet support ```dart:html```, but it does allow raw access | 70 DDC does not yet support ```dart:html```, but it does allow raw access |
71 to the JavaScript DOM. See our [modified version](https://github.com/dart-lang/
dev_compiler/blob/master/test/codegen/sunflower/sunflower.dart) of Dart Sunflowe
r for | 71 to the JavaScript DOM. See our [modified version](https://github.com/dart-lang/
dev_compiler/blob/master/test/codegen/sunflower/sunflower.dart) of Dart Sunflowe
r for |
72 an example. | 72 an example. |
73 | 73 |
74 ## Feedback | 74 ## Feedback |
75 | 75 |
76 Please file issues in our [GitHub issue tracker](https://github.com/dart-lang/de
v_compiler/issues). | 76 Please file issues in our [GitHub issue tracker](https://github.com/dart-lang/de
v_compiler/issues). |
77 | 77 |
78 You can also view or join our [mailing list](https://groups.google.com/a/dartlan
g.org/forum/#!forum/dev-compiler). | 78 You can also view or join our [mailing list](https://groups.google.com/a/dartlan
g.org/forum/#!forum/dev-compiler). |
79 | 79 |
80 | 80 |
81 | 81 |
OLD | NEW |