Skip to content

Commit

Permalink
fix: rename to oclif
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 13, 2018
1 parent 5df6054 commit e369346
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 79 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
- image: node:latest
working_directory: ~/cli
environment:
NYC: "yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc"
NYC: "yarn exec nyc -- --nycrc-path node_modules/@oclif/nyc-config/.nycrc"
MOCHA_FILE: "reports/mocha.xml"
steps:
- checkout
Expand All @@ -15,7 +15,7 @@ jobs:
- 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: yarn add -D nyc@11 @oclif/nyc-config@0 mocha-junit-reporter@1 @commitlint/cli@6 @commitlint/config-conventional@6
- run: |
mkdir -p reports
$NYC yarn test --reporter mocha-junit-reporter
Expand All @@ -34,11 +34,11 @@ jobs:
- add_ssh_keys
- checkout
- restore_cache: *restore_cache
- run: yarn global add @anycli/semantic-release@1 semantic-release@12
- run: yarn global add @oclif/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
semantic-release -e @oclif/semantic-release
- save_cache:
key: v0-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
Expand All @@ -48,7 +48,7 @@ jobs:

workflows:
version: 2
"@anycli/test":
"@oclif/test":
jobs:
- node-latest
- node-8
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "anycli"
"extends": "oclif"
}
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@anycli/test
@oclif/test
============

test helpers for anycli components
test helpers for oclif components

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

install:
- ps: Install-Product node $env:nodejs_version x64
- yarn add -D nyc@11 @anycli/nyc-config@0
- yarn add -D nyc@11 @oclif/nyc-config@0
test_script:
- .\node_modules\.bin\nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
- .\node_modules\.bin\nyc --nycrc-path node_modules/@oclif/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
- .\node_modules\.bin\nyc --nycrc-path node_modules/@oclif/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
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "@anycli/test",
"description": "test helpers for anycli components",
"name": "@oclif/test",
"description": "test helpers for oclif components",
"version": "0.10.15",
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/anycli/test/issues",
"bugs": "https://github.com/oclif/test/issues",
"dependencies": {
"fancy-test": "^1.0.1"
},
"devDependencies": {
"@anycli/command": "^1.2.16",
"@anycli/config": "^1.3.39",
"@anycli/errors": "^0.2.1",
"@anycli/tslint": "^0.2.7",
"@oclif/command": "^1.2.19",
"@oclif/config": "^1.3.45",
"@oclif/errors": "^1.0.1",
"@oclif/tslint": "^0.2.7",
"@types/chai": "^4.1.2",
"@types/mocha": "^2.2.48",
"@types/node": "^9.4.1",
"@types/node": "^9.4.5",
"chai": "^4.1.2",
"concurrently": "^3.5.1",
"globby": "^7.1.1",
Expand All @@ -28,13 +28,13 @@
"files": [
"/lib"
],
"homepage": "https://github.com/anycli/test",
"homepage": "https://github.com/oclif/test",
"keywords": [
"anycli"
"oclif"
],
"license": "MIT",
"main": "lib/index.js",
"repository": "anycli/test",
"repository": "oclif/test",
"scripts": {
"build": "rm -rf lib && tsc",
"lint": "concurrently -p command \"tsc -p test --noEmit\" \"tslint -p test\"",
Expand Down
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Config from '@anycli/config'
import * as Config from '@oclif/config'

import {loadConfig} from './load_config'

Expand Down
2 changes: 1 addition & 1 deletion src/exit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {expect} from 'chai'

/**
* ensures that a anycli command or hook exits
* ensures that a oclif command or hook exits
*
* @param code - expected code
* @default 0
Expand Down
4 changes: 2 additions & 2 deletions src/hook.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as Config from '@anycli/config'
import * as Config from '@oclif/config'

import {loadConfig} from './load_config'

/**
* tests a anycli hook
* tests a oclif hook
*
* @example <caption>check that when the 'init' hook is ran it outputs "this output"</caption>
* testHook('init', {id: 'mycommand'}, {stdout: true}, output => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Config from '@anycli/config'
import * as Config from '@oclif/config'
import {expect, fancy, FancyTypes} from 'fancy-test'

import {command} from './command'
Expand Down
2 changes: 1 addition & 1 deletion src/load_config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Config from '@anycli/config'
import * as Config from '@oclif/config'

/**
* loads CLI plugin/multi config
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/multi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "test",
"version": "0.0.0",
"private": true,
"anycli": {
"oclif": {
"commands": "./src/commands",
"hooks": {
"foo": "./src/hooks/foo"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/multi/src/commands/foo/bar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {Command, flags} = require('@anycli/command')
const {Command, flags} = require('@oclif/command')

class CLI extends Command {
constructor(args, opts) {
Expand Down
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@anycli/tslint"
"extends": "@oclif/tslint"
}
84 changes: 44 additions & 40 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@
# yarn lockfile v1


"@anycli/command@^1.2.16":
version "1.2.16"
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.16.tgz#6342f8fd19de6fe5ed010936b5b8f2a5879a81fe"
"@oclif/command@^1.2.19":
version "1.2.19"
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.2.19.tgz#369204c0abf0621c19fa883f31118f6cdb9666a5"
dependencies:
"@anycli/parser" "^3.2.6"
"@oclif/parser" "^3.2.6"

"@anycli/config@^1.3.39":
version "1.3.39"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.39.tgz#aa089281c3cfd40428885988906d1d19dcfdb437"
"@oclif/config@^1.3.45":
version "1.3.46"
resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.3.46.tgz#47fcf0a89e8e9955304e880b34c48a77bc08559e"

"@anycli/errors@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@anycli/errors/-/errors-0.2.1.tgz#719a95cd9c23838c65929da5d625a7537dd7d035"
"@oclif/errors@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@oclif/errors/-/errors-1.0.1.tgz#a660007a7d8b4a9573e2163d93359d510fbf05a1"
dependencies:
clean-stack "^1.3.0"
fs-extra "^5.0.0"
indent-string "^3.2.0"
strip-ansi "^4.0.0"
wrap-ansi "^3.0.1"

"@anycli/parser@^3.2.6":
version "3.2.6"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.6.tgz#bbd119a80709099179a9f11af0dc44b68c54575b"
"@oclif/parser@^3.2.6":
version "3.2.8"
resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.2.8.tgz#2b2e35b5c075d200d70950923acd64e258c5ae1d"

"@anycli/tslint@^0.2.7":
version "0.2.7"
resolved "https://registry.yarnpkg.com/@anycli/tslint/-/tslint-0.2.7.tgz#68b81121f33e9aa8240bd12cfade1f6023e6820d"
"@oclif/tslint@^0.2.7":
version "0.2.9"
resolved "https://registry.yarnpkg.com/@oclif/tslint/-/tslint-0.2.9.tgz#804c64b4ed92fa4087276295cdafbcdc78485f3a"
dependencies:
tslint "^5.9.1"
tslint-xo "^0.6.0"
Expand All @@ -41,9 +41,9 @@
version "2.2.48"
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.48.tgz#3523b126a0b049482e1c3c11877460f76622ffab"

"@types/node@^9.4.1":
version "9.4.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.1.tgz#0f636f7837e15d2d73a7f6f3ea0e322eb2a5ab65"
"@types/node@^9.4.5":
version "9.4.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.5.tgz#d2a90c634208173d1b1a0a6ba9f1df3de62edcf5"

"@types/strip-bom@^3.0.0":
version "3.0.0"
Expand Down Expand Up @@ -73,7 +73,7 @@ ansi-styles@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"

ansi-styles@^3.1.0:
ansi-styles@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88"
dependencies:
Expand Down Expand Up @@ -116,8 +116,8 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"

brace-expansion@^1.1.7:
version "1.1.8"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
dependencies:
balanced-match "^1.0.0"
concat-map "0.0.1"
Expand Down Expand Up @@ -162,12 +162,12 @@ chalk@^1.1.3:
supports-color "^2.0.0"

chalk@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba"
version "2.3.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
dependencies:
ansi-styles "^3.1.0"
ansi-styles "^3.2.0"
escape-string-regexp "^1.0.5"
supports-color "^4.0.0"
supports-color "^5.2.0"

check-error@^1.0.1:
version "1.0.2"
Expand Down Expand Up @@ -196,8 +196,8 @@ [email protected]:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.6.0.tgz#9df7e52fb2a0cb0fb89058ee80c3104225f37e1d"

commander@^2.12.1:
version "2.13.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c"
version "2.14.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.1.tgz#2235123e37af8ca3c65df45b026dbd357b01b9aa"

[email protected]:
version "0.0.1"
Expand Down Expand Up @@ -343,6 +343,10 @@ has-flag@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51"

has-flag@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"

[email protected]:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
Expand Down Expand Up @@ -402,8 +406,8 @@ lodash@^4.17.4, lodash@^4.5.1:
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"

make-error@^1.1.1:
version "1.3.2"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.2.tgz#8762ffad2444dd8ff1f7c819629fa28e24fea1c4"
version "1.3.3"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.3.tgz#a97ae14ffd98b05f543e83ddc395e1b2b6e4cc6a"

minimatch@^3.0.4:
version "3.0.4"
Expand Down Expand Up @@ -571,11 +575,11 @@ supports-color@^3.2.3:
dependencies:
has-flag "^1.0.0"

supports-color@^4.0.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b"
supports-color@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.2.0.tgz#b0d5333b1184dd3666cbe5aa0b45c5ac7ac17a4a"
dependencies:
has-flag "^2.0.0"
has-flag "^3.0.0"

tree-kill@^1.1.0:
version "1.2.0"
Expand Down Expand Up @@ -610,11 +614,11 @@ tslib@^1.0.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"

tslint-consistent-codestyle@^1.11.0:
version "1.11.0"
resolved "https://registry.yarnpkg.com/tslint-consistent-codestyle/-/tslint-consistent-codestyle-1.11.0.tgz#051493eeb3536a74e98d14b66f38028a785f8c2b"
version "1.11.1"
resolved "https://registry.yarnpkg.com/tslint-consistent-codestyle/-/tslint-consistent-codestyle-1.11.1.tgz#fa39ff5f5f8a25c537bd1e1f50de6190a2f4d70d"
dependencies:
tslib "^1.7.1"
tsutils "^2.12.2"
tsutils "^2.21.0"

tslint-eslint-rules@^4.1.1:
version "4.1.1"
Expand Down Expand Up @@ -659,9 +663,9 @@ tsutils@^1.4.0:
version "1.9.1"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.9.1.tgz#b9f9ab44e55af9681831d5f28d0aeeaf5c750cb0"

tsutils@^2.12.1, tsutils@^2.12.2:
version "2.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.21.0.tgz#43466a2283a0abce64e2209bc732ad72f8a04fab"
tsutils@^2.12.1, tsutils@^2.21.0:
version "2.21.1"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.21.1.tgz#5b23c263233300ed7442b4217855cbc7547c296a"
dependencies:
tslib "^1.8.1"

Expand Down

0 comments on commit e369346

Please sign in to comment.