| OLD | NEW |
| 1 Dart Observatory Developer Guide | 1 Dart Observatory Developer Guide |
| 2 --- | 2 --- |
| 3 | 3 |
| 4 Assumptions: |
| 5 You are running pub from the latest dev channel release of Dart Editor. |
| 6 |
| 4 During development you do not need to run dart2js or rebuild the VM (unless | 7 During development you do not need to run dart2js or rebuild the VM (unless |
| 5 you are also making changes to the backend). While you're working on your | 8 you are also making changes to the backend). While you're working on your |
| 6 feature follow the steps: | 9 feature follow the steps: |
| 7 | 10 |
| 8 1. Open runtime/bin/vmservice/client in the Dart Editor | 11 1. Open runtime/bin/vmservice/client in the Dart Editor |
| 9 2. Launch dart --enable-vm-service with a long running script in a terminal | 12 2. Run pub upgrade |
| 10 3. Launch web/index.html in Dartium | 13 3. Launch dart --enable-vm-service --pause-isolates-on-exit script.dart |
| 14 4. Launch web/index.html in Dartium |
| 11 | 15 |
| 12 At this point you should see the initial Observatory UI and that | 16 At this point you should see the initial Observatory UI and that |
| 13 it is communicating with the VM you launched in step 2. | 17 it is communicating with the VM you launched in step 2. |
| 14 | 18 |
| 15 Continue to develop and iterate until you're ready to upload your change | 19 Continue to develop and iterate until you're ready to upload your change |
| 16 for review. Upload your change and get an LGTM. | 20 for review. Upload your change and get an LGTM. |
| 17 | 21 |
| 18 4. Run dart build_.dart | 22 5. Run pub build |
| 19 5. Run ./precommit.sh | 23 6. Run ./deploy.sh |
| 24 7. If you have added new resource files (images, html files) you must run |
| 25 resources.sh and use its output to update resources_sources.gypi (Standalone) |
| 26 and devtools.gypi (Dartium). |
| 20 | 27 |
| 21 At this point you should rebuild your VM and using the build: | 28 At this point you should rebuild your VM and using the build: |
| 22 | 29 |
| 23 6. Launch dart --enable-vm-service with a long running script. | 30 8. Launch dart --enable-vm-service --pause-isolates-on-exit script.dart |
| 24 | 31 |
| 25 In a non-Dart enabled browser navigate to localhost:8181 and ensure | 32 In a non-Dart enabled browser navigate to localhost:8181 and ensure |
| 26 that your feature works after being compiled to JavaScript. | 33 that your feature works after being compiled to JavaScript. |
| 27 | 34 |
| 28 7. Commit your change | 35 9. Commit your change |
| 29 | 36 |
| OLD | NEW |