Skip to content
This repository has been archived by the owner on Oct 25, 2023. 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 b04df94 commit 03f63be
Show file tree
Hide file tree
Showing 13 changed files with 199 additions and 1,187 deletions.
42 changes: 25 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,50 @@ jobs:
docker:
- image: node:latest
working_directory: ~/cli
environment:
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"}}-{{ .Branch }}-{{checksum "yarn.lock"}}
- v0-yarn-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-
- v0-yarn-{{checksum ".circleci/config.yml"}}-master-
- run: .circleci/test
- v1-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v1-yarn-{{checksum ".circleci/config.yml"}}
- run: .circleci/greenkeeper
- 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
$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 @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 @oclif/semantic-release
- save_cache:
key: v1-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/screen":
"@oclif/screen":
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
greenkeeper-lockfile-upload
4 changes: 2 additions & 2 deletions .circleci/release
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ set -ex

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

yarn global add @anycli/semantic-release@1 semantic-release@12
yarn global add @oclif/semantic-release@1 semantic-release@12
yarn install --frozen-lockfile
semantic-release -e @anycli/semantic-release
semantic-release -e @oclif/semantic-release
2 changes: 1 addition & 1 deletion .circleci/test
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ "$CLI_ENGINE_GREENKEEPER_BRANCH" == 1 ]]; then
greenkeeper-lockfile-upload
fi

yarn add -D nyc @anycli/nyc-config
yarn add -D nyc @oclif/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": "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
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@anycli/screen
@oclif/screen
=============

get stdout/stderr columns

[![Version](https://img.shields.io/npm/v/@anycli/screen.svg)](https://npmjs.org/package/@anycli/screen)
[![CircleCI](https://circleci.com/gh/anycli/screen/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/screen/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/screen?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/screen/branch/master)
[![Codecov](https://codecov.io/gh/anycli/screen/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/screen)
[![Greenkeeper](https://badges.greenkeeper.io/anycli/screen.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/@anycli/screen/badge.svg)](https://snyk.io/test/npm/@anycli/screen)
[![Downloads/week](https://img.shields.io/npm/dw/@anycli/screen.svg)](https://npmjs.org/package/@anycli/screen)
[![License](https://img.shields.io/npm/l/@anycli/screen.svg)](https://github.com/anycli/screen/blob/master/package.json)
[![Version](https://img.shields.io/npm/v/@oclif/screen.svg)](https://npmjs.org/package/@oclif/screen)
[![CircleCI](https://circleci.com/gh/oclif/screen/tree/master.svg?style=svg)](https://circleci.com/gh/oclif/screen/tree/master)
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/oclif/screen?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/screen/branch/master)
[![Codecov](https://codecov.io/gh/oclif/screen/branch/master/graph/badge.svg)](https://codecov.io/gh/oclif/screen)
[![Greenkeeper](https://badges.greenkeeper.io/oclif/screen.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/npm/@oclif/screen/badge.svg)](https://snyk.io/test/npm/@oclif/screen)
[![Downloads/week](https://img.shields.io/npm/dw/@oclif/screen.svg)](https://npmjs.org/package/@oclif/screen)
[![License](https://img.shields.io/npm/l/@oclif/screen.svg)](https://github.com/oclif/screen/blob/master/package.json)
9 changes: 3 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ 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 @oclif/nyc-config@0
test_script:
- 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/@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
2 changes: 1 addition & 1 deletion package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (process.env.CI) {
linters.tslint.script = `${linters.tslint.script} --format junit > reports/tslint.xml`
}
// add code coverage reporting with nyc
const nyc = 'nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc'
const nyc = 'nyc --nycrc-path node_modules/@oclif/nyc-config/.nycrc'
const nycReport = `${nyc} report --reporter text-lcov > coverage.lcov`
mocha = series(`${nyc} ${mocha}`, nycReport)
}
Expand Down
37 changes: 17 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
{
"name": "@anycli/screen",
"name": "@oclif/screen",
"description": "get stdout/stderr columns",
"version": "0.0.3",
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/anycli/screen/issues",
"bugs": "https://github.com/oclif/screen/issues",
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^6.0.2",
"@commitlint/config-conventional": "^6.0.2",
"@anycli/tslint": "^0.1.3",
"@oclif/tslint": "^0.2.7",
"@oclif/tslint": "^0.2.9",
"@types/chai": "^4.1.2",
"@types/mocha": "^2.2.47",
"@types/node": "^9.4.0",
"@types/mocha": "^2.2.48",
"@types/node": "^9.4.5",
"chai": "^4.1.2",
"concurrently": "^3.5.1",
"eslint": "^4.16.0",
"eslint-config-anycli": "^1.2.1",
"husky": "^0.14.3",
"eslint-config-oclif": "^1.2.1",
"mocha": "^5.0.0",
"mocha-junit-reporter": "^1.17.0",
"nps": "^5.7.1",
"nps-utils": "^1.5.0",
"ts-node": "^4.1.0",
"typescript": "^2.6.2"
"typescript": "^2.7.1"
},
"engines": {
"node": ">=8.0.0"
},
"files": [
"/lib"
],
"homepage": "https://github.com/anycli/screen",
"homepage": "https://github.com/oclif/screen",
"keywords": [
"anycli"
"oclif"
],
"license": "MIT",
"main": "lib/screen.js",
"repository": "anycli/screen",
"repository": "oclif/screen",
"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 \"tsc -p test --noEmit\" \"tslint -p test -t stylish\"",
"posttest": "yarn run lint",
"prepublishOnly": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\""
},
"types": "lib/screen.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
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"
}
Loading

0 comments on commit 03f63be

Please sign in to comment.