Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 First install Dart, and then choose your editor. | |
| 2 (Don't care which editor you use? | |
| 3 Skip to [Step 2](#step-2-pick-an-editor-mac) and choose **Dart Editor**, | |
| 4 which includes Dart.) | |
| 5 | |
| 6 | |
| 7 ## Step 1: Install Dart | |
| 8 | |
| 9 We recommend using [Homebrew](http://brew.sh/) to manage your Dart | |
| 10 installation. | |
| 11 To install Dart, run: | |
| 12 | |
| 13 {% prettify huge %} | |
| 14 $ brew tap dart-lang/dart | |
| 15 $ brew install dart dartium | |
| 16 {% endprettify %} | |
| 17 | |
| 18 The **dart** package contains the [Dart SDK](/tools/sdk/), | |
| 19 which includes the Dart VM, libraries, and command-line Dart tools such as | |
| 20 [dart](/tools/dart-vm/), [dart2js](/tools/dart2js/), | |
| 21 [dartanalyzer](/docs/dart-up-and-running/contents/ch04-tools-dart_analyzer.html) , | |
| 22 [pub](/tools/pub/), and [docgen](docgen/). | |
| 23 | |
| 24 The **dartium** package contains a special build of Chromium | |
| 25 (nicknamed [Dartium](/tools/dartium/)) that includes a Dart VM. | |
| 26 Use it to test and | |
| 27 debug Dart web apps without first compiling them to JavaScript. | |
| 28 | |
| 29 <aside class="alert alert-info" markdown="1"> | |
| 30 **Writing server-side code?** | |
| 31 If you don't write Dart web apps, | |
| 32 you don't need to download `dartium`. | |
|
srawlins
2014/11/05 18:38:22
I think in this context, with Homebrew, 'download'
Kathy Walrath
2014/11/05 19:52:10
Done.
| |
| 33 Just `brew install dart`. | |
|
srawlins
2014/11/05 18:38:22
IMHO this isn't necessary.
Kathy Walrath
2014/11/05 19:52:10
Done.
| |
| 34 </aside> | |
| 35 | |
| 36 To update the software later, run: | |
| 37 | |
| 38 {% prettify huge %} | |
| 39 $ brew upgrade dart dartium | |
| 40 {% endprettify %} | |
| 41 | |
| 42 | |
| 43 ### Manual download | |
| 44 | |
| 45 An alternative to using Homebrew or Dart Editor | |
|
srawlins
2014/11/05 18:38:22
"or Dart Editor": Dart Editor hasn't been introduc
Kathy Walrath
2014/11/05 19:52:10
It's mentioned at the top in bold font, so I hoped
| |
| 46 is downloading Dart manually. | |
| 47 You'll need to perform the following steps | |
| 48 periodically to update your software. | |
| 49 | |
| 50 1. <a | |
| 51 data-bits="32" data-os="macos" data-tool="sdk" | |
| 52 class="download-link" | |
| 53 href="{{ site.custom.downloads.dartarchive-stable-url-prefix }}/latest/sdk/d artsdk-macos-ia32-release.zip"> | |
| 54 Download the Dart SDK.</a> | |
| 55 If you need a bigger heap or access to much more memory, download the | |
| 56 <a | |
| 57 data-bits="64" data-os="macos" data-tool="sdk" | |
| 58 class="download-link" | |
| 59 href="{{ site.custom.downloads.dartarchive-stable-url-prefix }}/latest/sdk/d artsdk-macos-x64-release.zip"> | |
| 60 64-bit Dart SDK</a>. | |
| 61 Unzip the downloaded file to get the SDK. | |
| 62 | |
| 63 2. Add `<sdk>/bin` to your `PATH`. | |
| 64 | |
| 65 3. If you're developing a web app, <a | |
| 66 data-bits="32" data-os="macos" data-tool="dartium" | |
| 67 class="download-link" | |
| 68 href="{{ site.custom.downloads.dartarchive-stable-url-prefix }}/latest/darti um/dartium-macos-ia32-release.zip"> | |
| 69 download Dartium</a>. | |
| 70 Unzip it to get special version of Chromium with the Dart VM. | |
| 71 This binary expires after 12 weeks. When that happens, | |
| 72 you need to download a new copy to continue using Dartium. | |
| OLD | NEW |