Skip to content

Commit f9a2964

Browse files
committedApr 27, 2018
fix: sort plugins by friendly name
1 parent b0b1c66 commit f9a2964

File tree

3 files changed

+48
-42
lines changed

3 files changed

+48
-42
lines changed
 

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"bugs": "https://github.com/oclif/plugin-plugins/issues",
77
"dependencies": {
88
"@heroku-cli/color": "^1.1.3",
9-
"@oclif/command": "^1.4.14",
10-
"chalk": "^2.4.0",
9+
"@oclif/command": "^1.4.16",
10+
"chalk": "^2.4.1",
1111
"cli-ux": "^3.4.1",
1212
"debug": "^3.1.0",
1313
"fs-extra": "^5.0.0",
14-
"http-call": "^5.1.0",
14+
"http-call": "^5.1.1",
1515
"load-json-file": "^4.0.0",
1616
"npm-run-path": "^2.0.2",
1717
"semver": "^5.5.0",
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@oclif/config": "^1.6.13",
23-
"@oclif/dev-cli": "^1.13.6",
23+
"@oclif/dev-cli": "^1.13.8",
2424
"@oclif/errors": "^1.0.6",
2525
"@oclif/plugin-help": "^1.2.5",
2626
"@oclif/test": "^1.0.5",
@@ -37,7 +37,7 @@
3737
"fancy-test": "^1.0.5",
3838
"globby": "^8.0.1",
3939
"mocha": "^5.1.1",
40-
"ts-node": "6.0.0",
40+
"ts-node": "6.0.1",
4141
"tslint": "^5.9.1",
4242
"typescript": "^2.8.3"
4343
},

‎src/commands/plugins/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class PluginsIndex extends Command {
2727
async run() {
2828
const {flags} = this.parse(PluginsIndex)
2929
let plugins = this.config.plugins
30-
sortBy(plugins, p => p.name)
30+
sortBy(plugins, p => this.plugins.friendlyName(p.name))
3131
if (!flags.core) {
3232
plugins = plugins.filter(p => p.type !== 'core' && p.type !== 'dev')
3333
}

‎yarn.lock

+42-36
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
debug "^3.1.0"
4444
semver "^5.5.0"
4545

46-
"@oclif/command@^1.4.14":
47-
version "1.4.14"
48-
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.4.14.tgz#b9a65945566711dba1d180af05e427da9a673166"
46+
"@oclif/command@^1.4.15", "@oclif/command@^1.4.16":
47+
version "1.4.16"
48+
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.4.16.tgz#4e1cdae611d1eac28bfd3481797b38b8638767c0"
4949
dependencies:
50-
"@oclif/errors" "^1.0.4"
51-
"@oclif/parser" "^3.3.2"
50+
"@oclif/errors" "^1.0.6"
51+
"@oclif/parser" "^3.3.3"
5252
debug "^3.1.0"
5353
semver "^5.5.0"
5454

@@ -58,20 +58,20 @@
5858
dependencies:
5959
debug "^3.1.0"
6060

61-
"@oclif/dev-cli@^1.13.6":
62-
version "1.13.6"
63-
resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.13.6.tgz#9ef12d771acee7a231753b7ef4611603710f3fc3"
61+
"@oclif/dev-cli@^1.13.8":
62+
version "1.13.8"
63+
resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.13.8.tgz#6b8db116d210740152443f8759cc4ad65125da6e"
6464
dependencies:
65-
"@oclif/command" "^1.4.14"
65+
"@oclif/command" "^1.4.15"
6666
"@oclif/config" "^1.6.13"
6767
"@oclif/errors" "^1.0.6"
6868
"@oclif/plugin-help" "^1.2.5"
69-
cli-ux "^3.3.31"
69+
cli-ux "^3.4.1"
7070
debug "^3.1.0"
7171
fs-extra "^5.0.0"
7272
lodash "^4.17.5"
7373
normalize-package-data "^2.4.0"
74-
qqjs "^0.3.6"
74+
qqjs "^0.3.7"
7575
require-resolve "^0.0.2"
7676
tslib "^1.9.0"
7777

@@ -106,6 +106,13 @@
106106
"@oclif/linewrap" "^1.0.0"
107107
chalk "^2.3.2"
108108

109+
"@oclif/parser@^3.3.3":
110+
version "3.3.3"
111+
resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.3.3.tgz#bfde499b836178eee2b6b29ccb7fb3f95851d3c6"
112+
dependencies:
113+
"@oclif/linewrap" "^1.0.0"
114+
chalk "^2.4.0"
115+
109116
"@oclif/plugin-help@^1.2.5":
110117
version "1.2.5"
111118
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.2.5.tgz#5a184cdac3d0cf9c12b444e693e5102b288bde24"
@@ -375,6 +382,14 @@ chalk@^2.3.0, chalk@^2.3.2, chalk@^2.4.0:
375382
escape-string-regexp "^1.0.5"
376383
supports-color "^5.3.0"
377384

385+
chalk@^2.4.1:
386+
version "2.4.1"
387+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
388+
dependencies:
389+
ansi-styles "^3.2.1"
390+
escape-string-regexp "^1.0.5"
391+
supports-color "^5.3.0"
392+
378393
check-error@^1.0.1:
379394
version "1.0.2"
380395
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82"
@@ -396,25 +411,6 @@ clean-stack@^1.3.0:
396411
version "1.3.0"
397412
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-1.3.0.tgz#9e821501ae979986c46b1d66d2d432db2fd4ae31"
398413

399-
cli-ux@^3.3.31:
400-
version "3.3.31"
401-
resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.3.31.tgz#e4f2a380df00ebf298189b83a77ae92cdfc7355f"
402-
dependencies:
403-
"@oclif/linewrap" "^1.0.0"
404-
"@oclif/screen" "^1.0.2"
405-
ansi-styles "^3.2.1"
406-
cardinal "^1.0.0"
407-
chalk "^2.4.0"
408-
clean-stack "^1.3.0"
409-
extract-stack "^1.0.0"
410-
fs-extra "^5.0.0"
411-
indent-string "^3.2.0"
412-
lodash "^4.17.5"
413-
password-prompt "^1.0.4"
414-
semver "^5.5.0"
415-
strip-ansi "^4.0.0"
416-
supports-color "^5.4.0"
417-
418414
cli-ux@^3.4.1:
419415
version "3.4.1"
420416
resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.4.1.tgz#bfa17e75cd1a60547a11c515166117b05ea89cdd"
@@ -849,6 +845,16 @@ http-call@^5.1.0:
849845
tslib "^1.9.0"
850846
tunnel-agent "^0.6.0"
851847

848+
http-call@^5.1.1:
849+
version "5.1.1"
850+
resolved "https://registry.yarnpkg.com/http-call/-/http-call-5.1.1.tgz#0110095d455b876c64cc9fe820b3f836cc552ea7"
851+
dependencies:
852+
content-type "^1.0.4"
853+
debug "^3.1.0"
854+
is-retry-allowed "^1.1.0"
855+
is-stream "^1.1.0"
856+
tunnel-agent "^0.6.0"
857+
852858
ignore@^3.3.5:
853859
version "3.3.7"
854860
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"
@@ -1361,9 +1367,9 @@ pump@^1.0.0:
13611367
end-of-stream "^1.1.0"
13621368
once "^1.3.1"
13631369

1364-
qqjs@^0.3.6:
1365-
version "0.3.6"
1366-
resolved "https://registry.yarnpkg.com/qqjs/-/qqjs-0.3.6.tgz#6e4b8008489a055fb95a93365154a9e777e9b784"
1370+
qqjs@^0.3.7:
1371+
version "0.3.7"
1372+
resolved "https://registry.yarnpkg.com/qqjs/-/qqjs-0.3.7.tgz#eb7d481d3cf3e8c9744da0d21d917d1a4b2080d9"
13671373
dependencies:
13681374
chalk "^2.3.2"
13691375
debug "^3.1.0"
@@ -1716,9 +1722,9 @@ tree-kill@^1.1.0:
17161722
version "1.2.0"
17171723
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36"
17181724

1719-
ts-node@6.0.0:
1720-
version "6.0.0"
1721-
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.0.tgz#46c25f8498593a9248eeea16906f1598fa098140"
1725+
ts-node@6.0.1:
1726+
version "6.0.1"
1727+
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.1.tgz#e2dd65abcadae530d2b2109cfd19202ba9f90402"
17221728
dependencies:
17231729
arrify "^1.0.0"
17241730
chalk "^2.3.0"

0 commit comments

Comments
 (0)
Please sign in to comment.