Skip to content

Commit

Permalink
fix: rename to plugin-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 2, 2018
1 parent dffd5ee commit fd03cc0
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 62 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- v0-yarn-{{checksum ".circleci/config.yml"}}
- run: .circleci/greenkeeper
- run: yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1 @commitlint/cli@6 @commitlint/config-conventional@6
- run: ./bin/run --help
- run: |
mkdir -p reports
$NYC yarn test --reporter mocha-junit-reporter
Expand Down Expand Up @@ -48,7 +49,7 @@ jobs:

workflows:
version: 2
"@anycli/plugins-plugin":
"@anycli/plugin-plugins":
jobs:
- node-latest
- node-8
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@anycli/plugins-plugin
@anycli/plugin-plugins
======================

plugins plugin for anycli

[![Version](https://img.shields.io/npm/v/@anycli/plugins-plugin.svg)](https://npmjs.org/package/@anycli/plugins-plugin)
[![CircleCI](https://circleci.com/gh/anycli/plugins-plugin/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/plugins-plugin/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/plugins-plugin?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/plugins-plugin/branch/master)
[![Codecov](https://codecov.io/gh/anycli/plugins-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/plugins-plugin)
[![Greenkeeper](https://badges.greenkeeper.io/anycli/plugins-plugin.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/@anycli/plugins-plugin/badge.svg)](https://snyk.io/test/npm/@anycli/plugins-plugin)
[![Downloads/week](https://img.shields.io/npm/dw/@anycli/plugins-plugin.svg)](https://npmjs.org/package/@anycli/plugins-plugin)
[![License](https://img.shields.io/npm/l/@anycli/plugins-plugin.svg)](https://github.com/anycli/plugins-plugin/blob/master/package.json)
[![Version](https://img.shields.io/npm/v/@anycli/plugin-plugins.svg)](https://npmjs.org/package/@anycli/plugin-plugins)
[![CircleCI](https://circleci.com/gh/anycli/plugin-plugins/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/plugin-plugins/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/plugin-plugins?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/plugin-plugins/branch/master)
[![Codecov](https://codecov.io/gh/anycli/plugin-plugins/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/plugin-plugins)
[![Greenkeeper](https://badges.greenkeeper.io/anycli/plugin-plugins.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/@anycli/plugin-plugins/badge.svg)](https://snyk.io/test/npm/@anycli/plugin-plugins)
[![Downloads/week](https://img.shields.io/npm/dw/@anycli/plugin-plugins.svg)](https://npmjs.org/package/@anycli/plugin-plugins)
[![License](https://img.shields.io/npm/l/@anycli/plugin-plugins.svg)](https://github.com/anycli/plugin-plugins/blob/master/package.json)
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ install:
- ps: Install-Product node $env:nodejs_version x64
- yarn add -D nyc@11 @anycli/nyc-config@0
test_script:
- .\bin\run --help
- .\node_modules\.bin\nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
after_test:
- .\node_modules\.bin\nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov
Expand Down
3 changes: 3 additions & 0 deletions bin/run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\run" %*
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@anycli/plugins-plugin",
"name": "@anycli/plugin-plugins",
"description": "plugins plugin for anycli",
"version": "0.2.2",
"author": "Jeff Dickey @jdxcode",
Expand All @@ -8,10 +8,10 @@
"plugins": "./lib/load",
"pluginScope": "heroku-cli",
"devPlugins": [
"@anycli/version"
"@anycli/plugin-version"
]
},
"bugs": "https://github.com/anycli/plugins-plugin/issues",
"bugs": "https://github.com/anycli/plugin-plugins/issues",
"dependencies": {
"@anycli/command": "^0.3.4",
"@anycli/manifest-file": "^0.3.8",
Expand All @@ -27,10 +27,10 @@
},
"devDependencies": {
"@anycli/config": "^0.2.11",
"@anycli/engine": "^0.1.44",
"@anycli/engine": "^0.1.46",
"@anycli/plugin-version": "^0.1.19",
"@anycli/test": "^0.10.2",
"@anycli/tslint": "^0.2.2",
"@anycli/version": "^0.1.19",
"@types/chai": "^4.1.2",
"@types/fs-extra": "^5.0.0",
"@types/lodash": "^4.14.100",
Expand All @@ -54,13 +54,13 @@
"files": [
"/lib"
],
"homepage": "https://github.com/anycli/plugins-plugin",
"homepage": "https://github.com/anycli/plugin-plugins",
"keywords": [
"anycli-plugin"
],
"license": "MIT",
"main": "lib/index.js",
"repository": "anycli/plugins-plugin",
"repository": "anycli/plugin-plugins",
"scripts": {
"build": "rm -rf lib && tsc",
"lint": "concurrently -p command \"eslint .\" \"tsc -p test --noEmit\" \"tslint -p test\"",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ export default class Plugins {
if (name.includes('@')) return
const defaultScope = this.config.pjson.anycli.pluginScope
if (!defaultScope) return
return `@${defaultScope}/${name}-plugin`
return `@${defaultScope}/plugin-${name}`
}

friendlyName(name: string): string {
const defaultScope = this.config.pjson.anycli.pluginScope
if (!defaultScope) return name
const match = name.match(`@${defaultScope}/(.+)-plugin`)
const match = name.match(`@${defaultScope}/plugin-(.+)`)
if (!match) return name
return match[1]
}
Expand Down
6 changes: 3 additions & 3 deletions test/commands/plugins/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ describe('command', () => {
.stdout()
.command(['status'])
.do(output => expect(output.stdout).to.contain('No known issues at this time'))
.command(['plugins:uninstall', '@heroku-cli/status-plugin'])
.command(['plugins:uninstall', '@heroku-cli/plugin-status'])
.stdout()
.command(['plugins'])
.do(output => expect(output.stdout).to.equal('no plugins installed\n'))
.it('installs and uninstalls status')

test
.command(['plugins:install', '@heroku-cli/status-plugin'])
.command(['plugins:install', '@heroku-cli/plugin-status'])
.stdout()
.command(['plugins'])
.do(output => expect(output.stdout).to.contain('status '))
Expand All @@ -27,7 +27,7 @@ describe('command', () => {
.stdout()
.command(['plugins'])
.do(output => expect(output.stdout).to.equal('no plugins installed\n'))
.it('installs and uninstalls @heroku-cli/status-plugin')
.it('installs and uninstalls @heroku-cli/plugin-status')

test
.skip()
Expand Down
50 changes: 10 additions & 40 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
# yarn lockfile v1


"@anycli/command@^0.2.19":
version "0.2.21"
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-0.2.21.tgz#68a725cddb0dece1d7dd69965de4ae7e3908b61c"
dependencies:
"@anycli/parser" "^3.0.1"
cli-ux "^3.3.10"
debug "^3.1.0"
lodash "^4.17.4"
tslib "^1.9.0"

"@anycli/command@^0.3.4":
version "0.3.4"
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-0.3.4.tgz#c02b07f0f309192021cd76fa66b3f88db173025e"
Expand All @@ -33,20 +23,9 @@
lodash "^4.17.4"
read-pkg "^3.0.0"

"@anycli/config@^0.2.3":
version "0.2.4"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-0.2.4.tgz#957e4f174cadd397d9bdd81d3552544a8214273e"
dependencies:
cli-ux "^3.3.10"
debug "^3.1.0"
fs-extra "^5.0.0"
load-json-file "^4.0.0"
lodash "^4.17.4"
read-pkg "^3.0.0"

"@anycli/engine@^0.1.44":
version "0.1.44"
resolved "https://registry.yarnpkg.com/@anycli/engine/-/engine-0.1.44.tgz#fe0cc84aad092b6b2411223baf6a76c6e598675e"
"@anycli/engine@^0.1.46":
version "0.1.46"
resolved "https://registry.yarnpkg.com/@anycli/engine/-/engine-0.1.46.tgz#89ed1b587f5fc83f8ca865786420684d319d04fa"
dependencies:
"@anycli/manifest-file" "^0.3.8"
cli-ux "^3.3.12"
Expand All @@ -66,14 +45,6 @@
lodash "^4.17.4"
proper-lockfile "^3.0.2"

"@anycli/parser@^3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.0.1.tgz#24a2bca4abe1e1ffb91b0210b709b3ec15ee4ea4"
dependencies:
"@anycli/screen" "^0.0.3"
chalk "^2.3.0"
lodash "^4.17.4"

"@anycli/parser@^3.0.4":
version "3.0.4"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.0.4.tgz#8714c4f73134625fe3781b9e2b5aa0ebb5685a82"
Expand All @@ -82,6 +53,13 @@
chalk "^2.3.0"
lodash "^4.17.4"

"@anycli/plugin-version@^0.1.19":
version "0.1.19"
resolved "https://registry.yarnpkg.com/@anycli/plugin-version/-/plugin-version-0.1.19.tgz#8a4e9b3e44acb810cb1db82db71bf9dc1048b297"
dependencies:
"@anycli/command" "^0.3.4"
cli-ux "^3.3.12"

"@anycli/screen@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@anycli/screen/-/screen-0.0.3.tgz#f0afd970c3ed725702948a45a874ede1fdd9362e"
Expand All @@ -100,14 +78,6 @@
tslint "^5.9.1"
tslint-xo "^0.6.0"

"@anycli/version@^0.1.19":
version "0.1.19"
resolved "https://registry.yarnpkg.com/@anycli/version/-/version-0.1.19.tgz#4464c3c831e0dc1d0ef92375167ec9af923b66c3"
dependencies:
"@anycli/command" "^0.2.19"
"@anycli/config" "^0.2.3"
cli-ux "^3.3.10"

"@heroku-cli/color@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@heroku-cli/color/-/color-1.1.3.tgz#f5f3bb043c3c5c78888135a89633227cfca04b2b"
Expand Down

0 comments on commit fd03cc0

Please sign in to comment.