This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
3,126 additions
and
2,216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
--- | ||
version: 2 | ||
jobs: | ||
node-6: &test-build | ||
node-latest: &test | ||
docker: | ||
- image: node:6 | ||
working_directory: /cli | ||
- image: node:latest | ||
working_directory: ~/cli | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
- restore_cache: &restore_cache | ||
keys: | ||
- v0-yarn-{{ .Branch }}-{{checksum "yarn.lock"}} | ||
- v0-yarn-{{ .Branch }}- | ||
- v0-yarn-master | ||
- run: node -v | ||
- run: yarn | ||
- run: yarn test --coverage | ||
- run: curl -s https://codecov.io/bash | bash | ||
- save_cache: | ||
key: v0-yarn-{{ .Branch }}-{{checksum "yarn.lock"}} | ||
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum "scripts/circleci"}}-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}} | ||
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum "scripts/circleci"}}-{{checksum ".circleci/config.yml"}}-{{ .Branch }}- | ||
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum "scripts/circleci"}}-{{checksum ".circleci/config.yml"}}-master- | ||
- run: ./scripts/circleci | ||
- store_test_results: | ||
path: ~/cli/reports | ||
- save_cache: &save_cache | ||
key: v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{checksum "scripts/circleci"}}-{{checksum ".circleci/config.yml"}}-{{ .Branch }}-{{checksum "yarn.lock"}} | ||
paths: | ||
- /cli/node_modules | ||
- ~/cli/node_modules | ||
- /usr/local/share/.cache/yarn | ||
- /usr/local/share/.config/yarn | ||
node-8: | ||
<<: *test-build | ||
<<: *test | ||
docker: | ||
- image: node:8 | ||
node-9: | ||
<<: *test-build | ||
docker: | ||
- image: node:latest | ||
release: | ||
<<: *test | ||
steps: | ||
- checkout | ||
- restore_cache: *restore_cache | ||
- run: yarn | ||
- run: ./node_modules/.bin/dxcli-dev-semantic-release | ||
- save_cache: *save_cache | ||
|
||
workflows: | ||
version: 2 | ||
test: | ||
"@dxcli/parser": | ||
jobs: | ||
- node-6 | ||
- node-latest | ||
- node-8 | ||
- node-9 | ||
- release: | ||
context: org-global | ||
filters: | ||
branches: {only: master} | ||
requires: | ||
- node-latest | ||
- node-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "dxcli" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
*-debug.log | ||
*-error.log | ||
/coverage | ||
/node_modules | ||
/tmp | ||
/lib | ||
/.nyc_output |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
environment: | ||
nodejs_version: "9" | ||
cache: | ||
- '%LOCALAPPDATA%\Yarn -> appveyor.yml' | ||
- node_modules -> package.json | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version x64 | ||
- yarn | ||
test_script: | ||
- yarn test | ||
after_test: | ||
- ps: | | ||
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH | ||
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh | ||
bash codecov.sh | ||
build: off | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,63 @@ | ||
{ | ||
"name": "cli-flags", | ||
"description": "basic CLI flag parser", | ||
"version": "2.0.7", | ||
"author": "Jeff Dickey", | ||
"bugs": "https://github.com/heroku/cli-flags/issues", | ||
"name": "@dxcli/parser", | ||
"description": "arg and flag parser for dxcli", | ||
"version": "0.0.0", | ||
"author": "Jeff Dickey @jdxcode", | ||
"dependencies": { | ||
"@cli-engine/screen": "^0.0.0", | ||
"@heroku/linewrap": "^1.0.0", | ||
"ts-lodash": "^4.0.8" | ||
"@dxcli/screen": "^0.0.0", | ||
"chalk": "^2.3.0", | ||
"lodash": "^4.17.4" | ||
}, | ||
"devDependencies": { | ||
"@types/chalk": "2.2.0", | ||
"@types/jest": "^22.0.0", | ||
"@types/lodash": "^4.14.91", | ||
"@types/node": "^8.5.2", | ||
"babel-core": "^6.26.0", | ||
"chalk": "^2.3.0", | ||
"del-cli": "^1.1.0", | ||
"@dxcli/dev": "^1.1.2", | ||
"@dxcli/dev-semantic-release": "^0.0.3", | ||
"@dxcli/dev-test": "^0.0.1", | ||
"@dxcli/dev-tslint": "^0.0.6", | ||
"@heroku/linewrap": "^1.0.0", | ||
"@types/chalk": "^2.2.0", | ||
"@types/node": "^9.3.0", | ||
"eslint": "^4.15.0", | ||
"eslint-config-dxcli": "^1.1.4", | ||
"husky": "^0.14.3", | ||
"jest": "^22.0.4", | ||
"lint-staged": "^6.0.0", | ||
"prettier": "^1.9.2", | ||
"ts-jest": "^22.0.0", | ||
"mocha": "^4.1.0", | ||
"nyc": "^11.4.1", | ||
"ts-node": "^4.1.0", | ||
"tslint": "^5.8.0", | ||
"tslint-config-prettier": "^1.6.0", | ||
"typescript": "^2.6.2" | ||
}, | ||
"dxcli": { | ||
"workflows": { | ||
"test": [ | ||
"eslint .", | ||
"tsc", | ||
"tslint -p .", | ||
"commitlint --from master", | ||
"tsc -p test --noEmit", | ||
"mocha \"test/**/*.ts\"" | ||
], | ||
"lint": [ | ||
"eslint .", | ||
"tsc", | ||
"tslint -p .", | ||
"commitlint --from master", | ||
"tsc -p test --noEmit" | ||
] | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"homepage": "https://github.com/heroku/cli-flags", | ||
"keywords": [ | ||
"cli" | ||
"/lib" | ||
], | ||
"license": "ISC", | ||
"main": "./lib/index.js", | ||
"repository": "heroku/cli-flags", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"repository": "dxcli/parser", | ||
"scripts": { | ||
"posttest": "tslint -p .", | ||
"precommit": "lint-staged", | ||
"prepare": "del lib && tsc && del 'lib/**/*.test.js' 'lib/**/*.test.d.ts'", | ||
"pretest": "tsc", | ||
"test": "jest" | ||
"commitmsg": "dxcli-dev-commitmsg", | ||
"lint": "dxcli-dev lint", | ||
"precommit": "dxcli-dev lint", | ||
"prepare": "rm -rf lib && tsc", | ||
"test": "dxcli-dev test" | ||
}, | ||
"types": "./lib/index.d.ts" | ||
"types": "lib/index.d.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH | ||
|
||
CLI_ENGINE_UTIL_YARN_ARGS="--frozen-lockfile" | ||
|
||
if [[ "$CIRCLE_BRANCH" == greenkeeper/* ]]; then | ||
CLI_ENGINE_GREENKEEPER_BRANCH=1 | ||
CLI_ENGINE_UTIL_YARN_ARGS="" | ||
if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then | ||
yarn global add greenkeeper-lockfile@1 | ||
fi | ||
greenkeeper-lockfile-update | ||
fi | ||
|
||
yarn install $CLI_ENGINE_UTIL_YARN_ARGS | ||
|
||
if [[ "$CLI_ENGINE_GREENKEEPER_BRANCH" == 1 ]]; then | ||
greenkeeper-lockfile-upload | ||
fi | ||
|
||
CWD=$(pwd) | ||
NYC="./node_modules/.bin/nyc --nycrc-path node_modules/@dxcli/dev-nyc-config/.nycrc" | ||
mkdir -p reports | ||
MOCHA_FILE="$CWD/reports/mocha.xml" \ | ||
DXCLI_MOCHA_OPTS="--reporter mocha-junit-reporter" \ | ||
DXCLI_ESLINT_OPTS="--format junit --output-file $CWD/reports/eslint.xml" \ | ||
DXCLI_TSLINT_OPTS="--format junit > $CWD/reports/tslint.xml" \ | ||
$NYC yarn test | ||
$NYC report --reporter=text-lcov > coverage.lcov | ||
|
||
curl -s https://codecov.io/bash | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.