Skip to content

Commit

Permalink
fix: rename to plugin-help
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 2, 2018
1 parent 7b2af2f commit 56c6eb1
Show file tree
Hide file tree
Showing 13 changed files with 162 additions and 1,398 deletions.
43 changes: 26 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,51 @@ jobs:
docker:
- image: node:latest
working_directory: ~/cli
environment:
NYC: "yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc"
MOCHA_FILE: "reports/mocha.xml"
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-
- v0-yarn-{{checksum ".circleci/config.yml"}}-master-
- run: .circleci/test
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- 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
$NYC report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
- run: yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
- store_test_results: &store_test_results
path: ~/cli/reports
- save_cache: &save_cache
key: v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
node-8:
<<: *test
docker:
- image: node:8
steps:
- checkout
- restore_cache: *restore_cache
- run: .circleci/test
- store_test_results: *store_test_results
release:
<<: *test
steps:
- add_ssh_keys
- checkout
- restore_cache: *restore_cache
- run: .circleci/release
- run: yarn global add @anycli/semantic-release@1 semantic-release@12
- run: yarn --frozen-lockfile
- run: |
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
semantic-release -e @anycli/semantic-release
- save_cache:
key: v0-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn

workflows:
version: 2
"@anycli/help":
"@anycli/plugin-help":
jobs:
- node-latest
- node-8
Expand Down
25 changes: 25 additions & 0 deletions .circleci/greenkeeper
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

set -ex

PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH

if [[ "$CIRCLE_BRANCH" != greenkeeper/* ]]; then
yarn
yarn check
exit 0
fi

if [[ ! -z "$GIT_EMAIL" ]] & [[ ! -z "$GIT_USERNAME" ]]; then
git config --global push.default simple
git config --global user.email "$GIT_EMAIL"
git config --global user.name "$GIT_USERNAME"
fi

if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then
yarn global add greenkeeper-lockfile@1
fi

greenkeeper-lockfile-update
yarn install
greenkeeper-lockfile-upload
11 changes: 0 additions & 11 deletions .circleci/release

This file was deleted.

12 changes: 0 additions & 12 deletions .circleci/setup_git

This file was deleted.

29 changes: 0 additions & 29 deletions .circleci/test

This file was deleted.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@anycli/help
===========
@anycli/plugin-help
===================

standard help for anycli

[![Version](https://img.shields.io/npm/v/@anycli/help.svg)](https://npmjs.org/package/@anycli/help)
[![CircleCI](https://circleci.com/gh/anycli/help/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/help/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/help?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/help/branch/master)
[![Codecov](https://codecov.io/gh/anycli/help/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/help)
[![Greenkeeper](https://badges.greenkeeper.io/anycli/help.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/@anycli/help/badge.svg)](https://snyk.io/test/npm/@anycli/help)
[![Downloads/week](https://img.shields.io/npm/dw/@anycli/help.svg)](https://npmjs.org/package/@anycli/help)
[![License](https://img.shields.io/npm/l/@anycli/help.svg)](https://github.com/anycli/help/blob/master/package.json)
[![Version](https://img.shields.io/npm/v/@anycli/plugin-help.svg)](https://npmjs.org/package/@anycli/plugin-help)
[![CircleCI](https://circleci.com/gh/anycli/plugin-help/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/plugin-help/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/plugin-help?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/plugin-help/branch/master)
[![Codecov](https://codecov.io/gh/anycli/plugin-help/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/plugin-help)
[![Greenkeeper](https://badges.greenkeeper.io/anycli/plugin-help.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/@anycli/plugin-help/badge.svg)](https://snyk.io/test/npm/@anycli/plugin-help)
[![Downloads/week](https://img.shields.io/npm/dw/@anycli/plugin-help.svg)](https://npmjs.org/package/@anycli/plugin-help)
[![License](https://img.shields.io/npm/l/@anycli/plugin-help.svg)](https://github.com/anycli/plugin-help/blob/master/package.json)
10 changes: 4 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ cache:

install:
- ps: Install-Product node $env:nodejs_version x64
- git submodule sync
- git submodule update --init --recursive
- git config --global user.email "anycli@example.com"
- git config --global user.name "anycli"
- yarn add -D nyc @anycli/nyc-config
- yarn add -D nyc@11 @anycli/nyc-config@0
test_script:
- yarn test
- .\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
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
Expand Down
9 changes: 1 addition & 8 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#!/usr/bin/env node

const fs = require('fs')
const path = require('path')
const dev = fs.existsSync(path.join(__dirname, '../tsconfig.json'))

if (dev) require('ts-node/register')

const undefault = m => m.__esModule === true ? m.default : m
undefault(require('@anycli/engine'))()
require('@anycli/engine').run()
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" %*
53 changes: 0 additions & 53 deletions package-scripts.js

This file was deleted.

45 changes: 19 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "@anycli/help",
"name": "@anycli/plugin-help",
"description": "standard help for anycli",
"version": "0.3.5",
"author": "Jeff Dickey @jdxcode",
"anycli": {
"bin": "anycli",
"commands": "./lib/commands",
"bin": "anycli",
"devPlugins": [
"@anycli/version",
"@anycli/plugins"
"@anycli/plugin-version",
"@anycli/plugin-plugins"
]
},
"bugs": "https://github.com/jdxcode/help/issues",
"bugs": "https://github.com/anycli/plugin-help/issues",
"dependencies": {
"@anycli/command": "^0.3.1",
"@anycli/command": "^0.3.4",
"@anycli/screen": "^0.0.3",
"chalk": "^2.3.0",
"cli-ux": "^3.3.12",
Expand All @@ -24,17 +24,13 @@
"wrap-ansi": "^3.0.1"
},
"devDependencies": {
"@anycli/config": "^0.2.10",
"@anycli/engine": "^0.1.38",
"@anycli/plugins": "^0.2.1",
"@anycli/test": "^0.10.1",
"@anycli/tslint": "^0.2.1",
"@anycli/version": "^0.1.19",
"@commitlint/cli": "^6.0.5",
"@commitlint/config-conventional": "^6.0.4",
"@anycli/config": "^0.2.11",
"@anycli/engine": "^0.1.46",
"@anycli/test": "^0.10.2",
"@anycli/tslint": "^0.2.2",
"@types/chai": "^4.1.2",
"@types/indent-string": "^3.0.0",
"@types/lodash": "^4.14.99",
"@types/lodash": "^4.14.100",
"@types/mocha": "^2.2.48",
"@types/nock": "^9.1.2",
"@types/node": "^9.4.0",
Expand All @@ -44,12 +40,8 @@
"@types/wrap-ansi": "^2.0.14",
"chai": "^4.1.2",
"eslint": "^4.16.0",
"eslint-config-anycli": "^1.3.0",
"husky": "^0.14.3",
"eslint-config-anycli": "^1.3.1",
"mocha": "^5.0.0",
"mocha-junit-reporter": "^1.17.0",
"nps": "^5.7.1",
"nps-utils": "^1.5.0",
"strip-ansi": "^4.0.0",
"ts-node": "^4.1.0",
"typescript": "^2.7.1"
Expand All @@ -60,18 +52,19 @@
"files": [
"/lib"
],
"homepage": "https://github.com/jdxcode/help",
"homepage": "https://github.com/anycli/plugin-help",
"keywords": [
"anycli-plugin"
],
"license": "MIT",
"main": "./lib/index.js",
"repository": "anycli/help",
"repository": "anycli/plugin-help",
"scripts": {
"commitmsg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS",
"precommit": "nps lint -l warn",
"prepublishOnly": "nps build",
"test": "nps test -l warn"
"build": "rm -rf lib && tsc",
"lint": "concurrently -p command \"eslint .\" \"tsc -p test --noEmit\" \"tslint -p test\"",
"posttest": "yarn run lint",
"prepublishOnly": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\""
},
"types": "./lib/index.d.ts"
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./lib",
"pretty": true,
"rootDirs": [
"./src"
],
Expand Down
Loading

0 comments on commit 56c6eb1

Please sign in to comment.