1 | # ember-source-channel-url
|
2 |
|
3 | Retrieve a URL that can be used to reference a tarball representing the latest
|
4 | `ember-source` build for that channel.
|
5 |
|
6 | ## Usage
|
7 |
|
8 | ### Command Line API
|
9 |
|
10 | ```
|
11 | npx ember-source-channel-url canary
|
12 | ```
|
13 |
|
14 | Will print out:
|
15 |
|
16 | ```sh
|
17 | The URL for the latest tarball from ember-source's canary channel is:
|
18 |
|
19 | https://s3.amazonaws.com/builds.emberjs.com/canary/shas/<RANDOM SHA HERE>.tgz
|
20 | ```
|
21 |
|
22 | If you'd like to update `ember-source` in your `package.json` with the new URL, you can use the `--write` option:
|
23 |
|
24 | ```
|
25 | npx ember-source-channel-url canary --write
|
26 | ```
|
27 |
|
28 | ### Programmatic API
|
29 |
|
30 | ```js
|
31 | const getURLFor = require('ember-source-channel-url');
|
32 |
|
33 | getURLFor('canary').then((url) => {
|
34 | // use the URL here
|
35 | });
|
36 | ```
|