Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

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 d0a8687 commit b48d16e
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 102 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ 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
- restore_cache: &restore_cache
keys:
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v0-yarn-{{checksum ".circleci/config.yml"}}
- v1-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v1-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,13 +34,13 @@ 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"}}
key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
Expand Down
4 changes: 2 additions & 2 deletions .circleci/greenkeeper
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH

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

Expand All @@ -21,5 +21,5 @@ if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then
fi

greenkeeper-lockfile-update
yarn install
yarn
greenkeeper-lockfile-upload
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"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*-debug.log
*-error.log
.oclif.manifest.json
/.nyc_output
/coverage
/coverage.lcov
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ cli-ux
cli IO utilities

[![Version](https://img.shields.io/npm/v/cli-ux.svg)](https://npmjs.org/package/cli-ux)
[![CircleCI](https://circleci.com/gh/anycli/cli-ux/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/cli-ux/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/cli-ux?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/cli-ux/branch/master)
[![Codecov](https://codecov.io/gh/anycli/cli-ux/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/cli-ux)
[![Greenkeeper](https://badges.greenkeeper.io/anycli/cli-ux.svg)](https://greenkeeper.io/)
[![CircleCI](https://circleci.com/gh/oclif/cli-ux/tree/master.svg?style=svg)](https://circleci.com/gh/oclif/cli-ux/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/oclif/cli-ux?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/cli-ux/branch/master)
[![Codecov](https://codecov.io/gh/oclif/cli-ux/branch/master/graph/badge.svg)](https://codecov.io/gh/oclif/cli-ux)
[![Greenkeeper](https://badges.greenkeeper.io/oclif/cli-ux.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/cli-ux/badge.svg)](https://snyk.io/test/npm/cli-ux)
[![Downloads/week](https://img.shields.io/npm/dw/cli-ux.svg)](https://npmjs.org/package/cli-ux)
[![License](https://img.shields.io/npm/l/cli-ux.svg)](https://github.com/anycli/cli-ux/blob/master/package.json)
[![License](https://img.shields.io/npm/l/cli-ux.svg)](https://github.com/oclif/cli-ux/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
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"description": "cli IO utilities",
"version": "3.3.18",
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/anycli/cli-ux/issues",
"bugs": "https://github.com/oclif/cli-ux/issues",
"dependencies": {
"@anycli/screen": "^0.0.3",
"@heroku/linewrap": "^1.0.0",
"@oclif/screen": "^1.0.0",
"ansi-styles": "^3.2.0",
"cardinal": "^1.0.0",
"chalk": "^2.3.0",
Expand All @@ -21,7 +21,7 @@
"supports-color": "^5.1.0"
},
"devDependencies": {
"@anycli/tslint": "^0.2.6",
"@oclif/tslint": "^0.2.7",
"@types/ansi-styles": "^2.0.30",
"@types/chai": "^4.1.2",
"@types/clean-stack": "^1.3.0",
Expand All @@ -30,14 +30,14 @@
"@types/indent-string": "^3.0.0",
"@types/lodash": "^4.14.101",
"@types/mocha": "^2.2.48",
"@types/node": "^9.4.0",
"@types/node": "^9.4.5",
"@types/semver": "^5.5.0",
"@types/strip-ansi": "^3.0.0",
"@types/supports-color": "^3.1.0",
"chai": "^4.1.2",
"concurrently": "^3.5.1",
"eslint": "^4.17.0",
"eslint-config-anycli": "^1.3.2",
"eslint-config-oclif": "^1.3.1",
"fancy-test": "^1.0.1",
"husky": "^0.14.3",
"mocha": "^5.0.0",
Expand All @@ -50,16 +50,16 @@
"files": [
"/lib"
],
"homepage": "https://github.com/anycli/cli-ux",
"homepage": "https://github.com/oclif/cli-ux",
"keywords": [
"anycli"
"oclif"
],
"license": "MIT",
"main": "lib/index.js",
"repository": "anycli/cli-ux",
"repository": "oclif/cli-ux",
"scripts": {
"build": "rm -rf lib && tsc",
"lint": "concurrently -p command \"eslint .\" \"tsc -p test --noEmit\" \"tslint -p test\"",
"lint": "concurrently -p command \"tsc -p test --noEmit\" \"tslint -p test -t stylish\"",
"posttest": "yarn run lint",
"prepublishOnly": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\""
Expand Down
4 changes: 2 additions & 2 deletions src/deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import screen = require('@anycli/screen')
import screen = require('@oclif/screen')
import ansiStyles = require('ansi-styles')
import stripAnsi = require('strip-ansi')

Expand All @@ -13,7 +13,7 @@ export const deps = {
get ansiStyles(): typeof ansiStyles { return fetch('ansi-styles') },
get ansiEscapes(): any { return fetch('ansi-escapes') },
get passwordPrompt(): any { return fetch('password-prompt') },
get screen(): typeof screen { return fetch('@anycli/screen') },
get screen(): typeof screen { return fetch('@oclif/screen') },

get prompt(): typeof prompt.default { return fetch('./prompt').default },
get styledObject(): typeof styledObject.default { return fetch('./styled/object').default },
Expand Down
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@anycli/tslint",
"extends": "@oclif/tslint",
"rules": {
"prefer-template": false
}
Expand Down
Loading

0 comments on commit b48d16e

Please sign in to comment.