| OLD | NEW |
| 1 # TypeScript to Dart transpiler [](https://travis-ci.org/angular/ts2dart) | 1 # TypeScript to Dart JS Interop facade generator [](https://travis-ci.org/dart-l
ang/js_facade_gen) |
| 2 | 2 |
| 3 ts2dart is a TypeScript to Dart transpiler. It's mainly used to translate Angula
r 2 from TypeScript | 3 Generates package:js JS Interop faces for arbitrary TypeScript libraries. |
| 4 to Dart for its Dart user base. | |
| 5 | 4 |
| 6 ## Installation | 5 ## Installation |
| 7 | 6 |
| 8 - execute `npm i` to install the dependencies, | 7 - execute `npm i` to install the dependencies, |
| 9 - the Dart SDK must be available to run end to end tests. | 8 - the Dart SDK must be available to run end to end tests. |
| 10 | 9 |
| 11 ## Gulp tasks | 10 ## Gulp tasks |
| 12 | 11 |
| 13 - `gulp watch` executes the unit tests in watch mode (use `gulp test.unit` for a
single run), | 12 - `gulp watch` executes the unit tests in watch mode (use `gulp test.unit` for a
single run), |
| 14 - `gulp test.e2e` executes the e2e tests, | 13 - `gulp test.e2e` executes the e2e tests, |
| 15 - `gulp test.check-format` checks the source code formatting using `clang-format
`, | 14 - `gulp test.check-format` checks the source code formatting using `clang-format
`, |
| 16 - `gulp test` runs unit tests, e2e tests and checks the source code formatting. | 15 - `gulp test` runs unit tests, e2e tests and checks the source code formatting. |
| 17 | 16 |
| 18 ## Phabricator Reviews | 17 ## Publish |
| 19 | 18 |
| 20 You can send pull requests via Github, or by creating a Phabricator diff on | 19 - `npm run prepublish` |
| 21 https://reviews.angular.io. Both are fine, though Phabricator has a nicer code r
eview UI. | 20 - `npm publish` |
| 22 | 21 |
| 23 To create a Phabricator diff: | 22 ## Usage |
| 24 | 23 |
| 25 - create an account on https://reviews.angular.io | 24 - `node build/lib/main.js --destination=<destination-dir> <input d.ts directory
> |
| 26 - install [Arcanist](https://secure.phabricator.com/book/phabricator/article/arc
anist/) | |
| 27 - run `arc diff` to upload a diff (= pull request). This will also run all tests
. | |
| 28 - get it reviewed by entering a "Reviewer", e.g. "mprobst", "alexeagle", "viks",
... | |
| OLD | NEW |