OLD | NEW |
1 # Contibuting to pub | 1 # Contibuting to pub |
2 | 2 |
3 Thanks for being interested in contributing to pub! Contributing to a new | 3 Thanks for being interested in contributing to pub! Contributing to a new |
4 project can be hard: there's a lot of new code and practices to learn. This | 4 project can be hard: there's a lot of new code and practices to learn. This |
5 document is intended to get you up and running as quickly as possible. If you're | 5 document is intended to get you up and running as quickly as possible. If you're |
6 looking for documentation on using pub, try | 6 looking for documentation on using pub, try |
7 [pub.dartlang.org](http://pub.dartlang.org/doc). | 7 [pub.dartlang.org](http://pub.dartlang.org/doc). |
8 | 8 |
9 The first step towards contributing is to contact the pub dev team and let us | 9 The first step towards contributing is to contact the pub dev team and let us |
10 know what you're working on, so we can be sure not to start working on the same | 10 know what you're working on, so we can be sure not to start working on the same |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 It's probably easiest to start diving into the codebase by looking at a | 34 It's probably easiest to start diving into the codebase by looking at a |
35 particular pub command. Each command is encapsulated in files in | 35 particular pub command. Each command is encapsulated in files in |
36 `lib/src/command/`. | 36 `lib/src/command/`. |
37 | 37 |
38 ## Running pub | 38 ## Running pub |
39 | 39 |
40 To run pub from the Dart repository, first [build Dart][building]. From the root | 40 To run pub from the Dart repository, first [build Dart][building]. From the root |
41 of the repo: | 41 of the repo: |
42 | 42 |
43 ./tools/build.py -m release | 43 ./tools/build.py -m release create_sdk |
44 | 44 |
45 You'll need to re-build whenever you sync the repository, but not when you | 45 You'll need to re-build whenever you sync the repository, but not when you |
46 modify pub or any packages it depends on. To run pub, just run `sdk/bin/pub` (or | 46 modify pub or any packages it depends on. To run pub, just run `sdk/bin/pub` (or |
47 `sdk/bin/pub.bat` on Windows). | 47 `sdk/bin/pub.bat` on Windows). |
48 | 48 |
49 [building]: https://code.google.com/p/dart/wiki/Building | 49 [building]: https://code.google.com/p/dart/wiki/Building |
50 | 50 |
51 ## Testing pub | 51 ## Testing pub |
52 | 52 |
53 Before any change is made to pub, all tests should pass. To run all the pub | 53 Before any change is made to pub, all tests should pass. To run all the pub |
(...skipping 27 matching lines...) Expand all Loading... |
81 | 81 |
82 ./tools/test.py -m release pub/get/relative_symlink_test | 82 ./tools/test.py -m release pub/get/relative_symlink_test |
83 | 83 |
84 ## Landing your patch | 84 ## Landing your patch |
85 | 85 |
86 All patches to the Dart repo, including to pub, need to undergo code review | 86 All patches to the Dart repo, including to pub, need to undergo code review |
87 before they're submitted. The full process for putting up your patch for review | 87 before they're submitted. The full process for putting up your patch for review |
88 is [documented elsewhere][contributing]. | 88 is [documented elsewhere][contributing]. |
89 | 89 |
90 [contributing]: https://code.google.com/p/dart/wiki/Contributing | 90 [contributing]: https://code.google.com/p/dart/wiki/Contributing |
OLD | NEW |