OLD | NEW |
(Empty) | |
| 1 This directory contains source code for some examples published |
| 2 using [DartPad](https://github.com/dart-lang/dart-pad). |
| 3 To generate gists suitable for DartPad, we use |
| 4 [kasperpeulen's gist-generator](https://github.com/kasperpeulen/gist-generator). |
| 5 See Kasper's project for the latest instructions on using the tool, |
| 6 but here's what we do, for now. |
| 7 |
| 8 To get the tool: |
| 9 |
| 10 ``` |
| 11 pub global activate --source git https://github.com/kasperpeulen/gist-generator |
| 12 ``` |
| 13 |
| 14 To test whether all the examples follow DartPad's format, |
| 15 without actually generating any gists: |
| 16 |
| 17 ``` |
| 18 <from a directory containing one or more packages> |
| 19 gist generate -n |
| 20 ``` |
| 21 |
| 22 To generate a trial version of the gists, without changing any |
| 23 gists that are already published: |
| 24 |
| 25 ``` |
| 26 gist generate -t |
| 27 ``` |
| 28 |
| 29 To generate or update all gists for packages under the current directory: |
| 30 |
| 31 ``` |
| 32 gist generate |
| 33 ``` |
| 34 |
| 35 For that last command to work, you'll need the gist token for whichever |
| 36 user all the gists are under. (Contact the user.) If that is impractical, |
| 37 an alternative is to edit each pubspec.yaml, removing the `gist:` and |
| 38 `dartpad:` entries at the end. Then run `gist generate` and update all |
| 39 references to point to the new locations. |
OLD | NEW |