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

Commit

Permalink
fix: anycli rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 31, 2018
1 parent 8fd743a commit 9c6183f
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 2,189 deletions.
14 changes: 3 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ jobs:
- 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/setup_git
- run: .circleci/yarn
- run: yarn test
- run: curl -s https://codecov.io/bash | bash
- run: .circleci/test
- store_test_results: &store_test_results
path: ~/cli/reports
- save_cache: &save_cache
Expand All @@ -31,20 +28,15 @@ jobs:
steps:
- checkout
- restore_cache: *restore_cache
- run: .circleci/setup_git
- run: .circleci/yarn
- run: yarn test
- run: curl -s https://codecov.io/bash | bash
- run: .circleci/test
- store_test_results: *store_test_results
release:
<<: *test
steps:
- add_ssh_keys
- checkout
- restore_cache: *restore_cache
- run: .circleci/setup_git
- run: .circleci/yarn
- run: yarn exec nps release
- run: .circleci/release

workflows:
version: 2
Expand Down
11 changes: 11 additions & 0 deletions .circleci/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -ex

.circleci/setup_git

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

yarn global add @dxcli/semantic-release@1 semantic-release@12
yarn install --frozen-lockfile
semantic-release -e @dxcli/semantic-release
7 changes: 7 additions & 0 deletions .circleci/yarn → .circleci/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -ex

.circleci/setup_git

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

CLI_ENGINE_UTIL_YARN_ARGS="--frozen-lockfile"
Expand All @@ -20,3 +22,8 @@ yarn install $CLI_ENGINE_UTIL_YARN_ARGS
if [[ "$CLI_ENGINE_GREENKEEPER_BRANCH" == 1 ]]; then
greenkeeper-lockfile-upload
fi

yarn add -D nyc @dxcli/nyc-config
yarn test

curl -s https://codecov.io/bash | bash
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "dxcli"
"extends": "anycli"
}
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/dxcli/cli-ux/tree/master.svg?style=svg)](https://circleci.com/gh/dxcli/cli-ux/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/dxcli/cli-ux?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/cli-ux/branch/master)
[![Codecov](https://codecov.io/gh/dxcli/cli-ux/branch/master/graph/badge.svg)](https://codecov.io/gh/dxcli/cli-ux)
[![Greenkeeper](https://badges.greenkeeper.io/dxcli/cli-ux.svg)](https://greenkeeper.io/)
[![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/)
[![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/dxcli/cli-ux/blob/master/package.json)
[![License](https://img.shields.io/npm/l/cli-ux.svg)](https://github.com/anycli/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 @@ -8,9 +8,9 @@ install:
- ps: Install-Product node $env:nodejs_version x64
- git submodule sync
- git submodule update --init --recursive
- git config --global user.email "dxcli@example.com"
- git config --global user.name "dxcli"
- yarn
- git config --global user.email "anycli@example.com"
- git config --global user.name "anycli"
- yarn add -D nyc @anycli/nyc-config
test_script:
- yarn test
after_test:
Expand Down
14 changes: 7 additions & 7 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ const linters = {
tslint: script('tslint -p test', 'lint ts files'),
}

let test = 'mocha --forbid-only "test/**/*.test.ts"'
let mocha = 'mocha --forbid-only "test/**/*.test.ts"'
if (process.env.CI) {
if (process.env.CIRCLECI) {
// add mocha junit reporter
test = crossEnv(`MOCHA_FILE=reports/mocha.xml ${test} --reporter mocha-junit-reporter`)
mocha = crossEnv(`MOCHA_FILE=reports/mocha.xml ${mocha} --reporter mocha-junit-reporter`)
// add eslint reporter
linters.eslint.script = `${linters.eslint.script} --format junit --output-file reports/eslint.xml`
// add tslint reporter
linters.tslint.script = `${linters.tslint.script} --format junit > reports/tslint.xml`
}
// add code coverage reporting with nyc
const nyc = 'nyc --nycrc-path node_modules/@dxcli/nyc-config/.nycrc'
const nyc = 'nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc'
const nycReport = `${nyc} report --reporter text-lcov > coverage.lcov`
test = series(`${nyc} ${test}`, nycReport)
mocha = series(`${nyc} ${mocha}`, nycReport)
}

test = concurrent({
let test = concurrent({
...linters,
test: series('nps build', test),
test: series('nps build', mocha),
})

if (process.env.CI) test = series(mkdirp('reports'), test)
Expand All @@ -48,6 +48,6 @@ module.exports = {
build: series('rm -rf lib', 'tsc'),
lint: concurrent(linters),
test,
release: 'semantic-release -e @dxcli/semantic-release',
mocha,
},
}
29 changes: 20 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"description": "cli IO utilities",
"version": "3.3.8",
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/dxcli/cli-ux/issues",
"bugs": "https://github.com/anycli/cli-ux/issues",
"dependencies": {
"@dxcli/screen": "^0.0.1",
"@anycli/screen": "^0.0.3",
"@heroku/linewrap": "^1.0.0",
"ansi-styles": "^3.2.0",
"cardinal": "^1.0.0",
Expand All @@ -22,16 +22,27 @@
"supports-color": "^5.1.0"
},
"devDependencies": {
"@dxcli/dev": "^2.0.14",
"@dxcli/semantic-release": "^0.3.3",
"@dxcli/tslint": "^0.1.1",
"@anycli/tslint": "^0.1.3",
"@commitlint/cli": "^6.0.2",
"@commitlint/config-conventional": "^6.0.2",
"@types/ansi-styles": "^2.0.30",
"@types/chai": "^4.1.2",
"@types/clean-stack": "^1.3.0",
"@types/extract-stack": "^1.0.0",
"@types/fs-extra": "^5.0.0",
"@types/indent-string": "^3.0.0",
"@types/lodash": "^4.14.98",
"@types/mocha": "^2.2.47",
"@types/nock": "^9.1.2",
"@types/node": "^9.4.0",
"@types/node-notifier": "^0.0.28",
"@types/read-pkg": "^3.0.0",
"@types/semver": "^5.4.0",
"@types/strip-ansi": "^3.0.0",
"@types/supports-color": "^3.1.0",
"chai": "^4.1.2",
"eslint": "^4.16.0",
"eslint-config-anycli": "^1.2.1",
"fancy-test": "^0.6.4",
"husky": "^0.14.3",
"mocha": "^5.0.0",
Expand All @@ -47,15 +58,15 @@
"files": [
"/lib"
],
"homepage": "https://github.com/dxcli/cli-ux",
"homepage": "https://github.com/anycli/cli-ux",
"keywords": [
"dxcli"
"anycli"
],
"license": "MIT",
"main": "lib/index.js",
"repository": "dxcli/cli-ux",
"repository": "anycli/cli-ux",
"scripts": {
"commitmsg": "dxcli-commitlint",
"commitmsg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS",
"precommit": "nps lint -l warn",
"prepublishOnly": "nps build",
"test": "nps test -l warn"
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('@dxcli/screen')
import screen = require('@anycli/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('@dxcli/screen') },
get screen(): typeof screen { return fetch('@anycli/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": "@dxcli/tslint",
"extends": "@anycli/tslint",
"rules": {
"prefer-template": false
}
Expand Down
Loading

0 comments on commit 9c6183f

Please sign in to comment.