-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ember-cli/add-bin
Add binary to expose URL a bit easier...
- Loading branch information
Showing
5 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
|
||
/* eslint-disable no-console */ | ||
|
||
const getChannelURL = require('../src'); | ||
const channel = process.argv[2]; | ||
|
||
if (['release', 'beta', 'canary'].indexOf(channel) === -1) { | ||
console.log( | ||
`ember-source-channel-url is a utility module to easily obtain the URL | ||
to a tarball representing the latest \`ember-source\` build for a given | ||
channel. | ||
Usage: | ||
ember-source-channel-url canary | ||
ember-source-channel-url beta | ||
ember-source-channel-url release | ||
` | ||
); | ||
} else { | ||
getChannelURL(channel).then(url => | ||
console.log( | ||
`The URL for the latest tarball from ember-source's ${channel} channel is:\n\n\t${url}` | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,11 @@ | |
"license": "MIT", | ||
"author": "Robert Jackson <[email protected]>", | ||
"files": [ | ||
"bin/", | ||
"src/" | ||
], | ||
"main": "src/index.js", | ||
"bin": "./bin/ember-source-channel-url", | ||
"repository": "[email protected]:rwjblue/ember-source-channel-url.git", | ||
"scripts": { | ||
"test": "qunit tests/**/*-test.js" | ||
|
@@ -20,6 +22,7 @@ | |
"eslint-config-prettier": "^2.9.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-prettier": "^2.4.0", | ||
"execa": "^0.10.0", | ||
"get-port": "^3.2.0", | ||
"prettier": "^1.10.2", | ||
"qunit": "^2.5.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -420,6 +420,16 @@ cross-spawn@^5.1.0: | |
shebang-command "^1.2.0" | ||
which "^1.2.9" | ||
|
||
cross-spawn@^6.0.0: | ||
version "6.0.5" | ||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" | ||
dependencies: | ||
nice-try "^1.0.4" | ||
path-key "^2.0.1" | ||
semver "^5.5.0" | ||
shebang-command "^1.2.0" | ||
which "^1.2.9" | ||
|
||
[email protected]: | ||
version "2.0.5" | ||
resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" | ||
|
@@ -633,6 +643,18 @@ esutils@^2.0.2: | |
version "2.0.2" | ||
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" | ||
|
||
execa@^0.10.0: | ||
version "0.10.0" | ||
resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50" | ||
dependencies: | ||
cross-spawn "^6.0.0" | ||
get-stream "^3.0.0" | ||
is-stream "^1.1.0" | ||
npm-run-path "^2.0.0" | ||
p-finally "^1.0.0" | ||
signal-exit "^3.0.0" | ||
strip-eof "^1.0.0" | ||
|
||
[email protected]: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/exists-stat/-/exists-stat-1.0.0.tgz#0660e3525a2e89d9e446129440c272edfa24b529" | ||
|
@@ -1288,6 +1310,10 @@ is-retry-allowed@^1.1.0: | |
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" | ||
|
||
is-stream@^1.1.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" | ||
|
||
is-typedarray@~1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" | ||
|
@@ -1570,6 +1596,10 @@ natural-compare@^1.4.0: | |
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" | ||
|
||
nice-try@^1.0.4: | ||
version "1.0.4" | ||
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4" | ||
|
||
node-pre-gyp@^0.6.39: | ||
version "0.6.39" | ||
resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" | ||
|
@@ -1607,6 +1637,12 @@ [email protected]: | |
query-string "^5.0.1" | ||
sort-keys "^2.0.0" | ||
|
||
npm-run-path@^2.0.0: | ||
version "2.0.2" | ||
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" | ||
dependencies: | ||
path-key "^2.0.0" | ||
|
||
npmlog@^4.0.2: | ||
version "4.1.2" | ||
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" | ||
|
@@ -1736,6 +1772,10 @@ path-is-inside@^1.0.1, path-is-inside@^1.0.2: | |
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" | ||
|
||
path-key@^2.0.0, path-key@^2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" | ||
|
||
path-parse@^1.0.5: | ||
version "1.0.5" | ||
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" | ||
|
@@ -2001,6 +2041,10 @@ semver@^5.3.0: | |
version "5.4.1" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" | ||
|
||
semver@^5.5.0: | ||
version "5.5.0" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" | ||
|
||
set-blocking@~2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" | ||
|
@@ -2186,6 +2230,10 @@ strip-ansi@^4.0.0: | |
dependencies: | ||
ansi-regex "^3.0.0" | ||
|
||
strip-eof@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" | ||
|
||
strip-json-comments@~2.0.1: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" | ||
|