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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: oclif/dev-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 79d86821f720378edfb6de975385eef32f2a9397
Choose a base ref
...
head repository: oclif/dev-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7386f79d0a536ca1031b98692a5316e696ffc536
Choose a head ref
Loading
Showing with 2,434 additions and 1,843 deletions.
  1. +17 −10 .circleci/config.yml
  2. +1 −0 .eslintignore
  3. +7 −1 .eslintrc
  4. +13 −0 .github/dependabot.yml
  5. +26 −0 .github/workflows/ci.yml
  6. +23 −0 .github/workflows/stale.yml
  7. +254 −231 CHANGELOG.md
  8. +14 −35 README.md
  9. +0 −22 appveyor.yml
  10. +24 −21 package.json
  11. +15 −11 src/aws.ts
  12. +6 −6 src/commands/manifest.ts
  13. +42 −38 src/commands/pack/deb.ts
  14. +1 −1 src/commands/pack/index.ts
  15. +15 −12 src/commands/pack/macos.ts
  16. +47 −39 src/commands/pack/win.ts
  17. +4 −3 src/commands/publish/github.ts
  18. +6 −3 src/commands/publish/index.ts
  19. +1 −1 src/commands/publish/macos.ts
  20. +1 −1 src/commands/publish/win.ts
  21. +49 −37 src/commands/readme.ts
  22. +31 −0 src/help-compatibility.ts
  23. +7 −6 src/tarballs/bin.ts
  24. +11 −9 src/tarballs/build.ts
  25. +37 −34 src/tarballs/config.ts
  26. +6 −5 src/tarballs/node.ts
  27. +3 −3 src/util.ts
  28. +13 −14 test/deb.test.ts
  29. +19 −0 test/fixtures/cli-with-custom-help-no-format-command/README.md
  30. +11 −0 test/fixtures/cli-with-custom-help-no-format-command/package.json
  31. +31 −0 test/fixtures/cli-with-custom-help-no-format-command/src/commands/hello.ts
  32. +12 −0 test/fixtures/cli-with-custom-help-no-format-command/src/help.ts
  33. +1 −0 test/fixtures/cli-with-custom-help-no-format-command/src/index.ts
  34. +14 −0 test/fixtures/cli-with-custom-help-no-format-command/tsconfig.json
  35. +19 −0 test/fixtures/cli-with-custom-help/README.md
  36. +11 −0 test/fixtures/cli-with-custom-help/package.json
  37. +31 −0 test/fixtures/cli-with-custom-help/src/commands/hello.ts
  38. +8 −0 test/fixtures/cli-with-custom-help/src/help.ts
  39. +1 −0 test/fixtures/cli-with-custom-help/src/index.ts
  40. +14 −0 test/fixtures/cli-with-custom-help/tsconfig.json
  41. +19 −0 test/fixtures/cli-with-old-school-custom-help/README.md
  42. +11 −0 test/fixtures/cli-with-old-school-custom-help/package.json
  43. +31 −0 test/fixtures/cli-with-old-school-custom-help/src/commands/hello.ts
  44. +16 −0 test/fixtures/cli-with-old-school-custom-help/src/help.ts
  45. +1 −0 test/fixtures/cli-with-old-school-custom-help/src/index.ts
  46. +14 −0 test/fixtures/cli-with-old-school-custom-help/tsconfig.json
  47. +5 −5 test/macos.test.ts
  48. +10 −10 test/manifest.test.ts
  49. +101 −0 test/publish.test.ts
  50. +0 −58 test/publist.test.ts
  51. +60 −9 test/readme.test.ts
  52. +6 −6 test/win.test.ts
  53. +0 −3 tslint.json
  54. +1,314 −1,209 yarn.lock
27 changes: 17 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
version: 2
jobs:
test: &test
node-12: &test
docker:
- image: oclif/nsis:11.3.0-16
- image: oclif/nsis:12.0.0-16
working_directory: ~/cli
environment:
NYC: "yarn exec nyc -- --nycrc-path node_modules/@oclif/nyc-config/.nycrc"
@@ -13,6 +13,7 @@ jobs:
keys:
- v6-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v6-yarn-{{checksum ".circleci/config.yml"}}
- run: 'echo "Node: `node --version`"'
- run: yarn
- run: .circleci/loadgpg
- run: yarn add -D nyc@13 @oclif/nyc-config@1
@@ -22,14 +23,18 @@ jobs:
- run: |
$NYC yarn test
curl -s https://codecov.io/bash | bash
node-10:
<<: *test
docker:
- image: chadian/nsis:10-2
release:
<<: *test
steps:
- add_ssh_keys
- checkout
- run: .circleci/loadgpg
- restore_cache: *restore_cache
- run: yarn global add @oclif/semantic-release@3 semantic-release@15
- run: yarn global add @oclif/semantic-release@3 semantic-release@17
- run: yarn --frozen-lockfile
- run: ./bin/run pack
- run: ./bin/run pack:deb
@@ -53,10 +58,12 @@ workflows:
version: 2
"@oclif/dev-cli":
jobs:
- test
# - release:
# context: org-global
# filters:
# branches: {only: master}
# requires:
# - test
- node-12
- node-10
- release:
context: org-global
filters:
branches: {only: master}
requires:
- node-12
- node-10
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/lib
/tmp
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "oclif"
"extends": [
"oclif",
"oclif-typescript"
],
"rules": {
"unicorn/no-abusive-eslint-disable": "off"
}
}
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
labels:
- "dependencies"
open-pull-requests-limit: 100
pull-request-branch-name:
separator: "-"
ignore:
- dependency-name: "typescript"
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
env:
CI: true
- run: yarn test
env:
CI: true
23 changes: 23 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close stale issues

on:
schedule:
- cron: 0 0 * * *

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: -1 # do not mark issues or pull requests as stale automatically
days-before-close: 7 # wait 7 days before closing a stale issue
stale-issue-label: stale
stale-pr-label: stale
close-issue-message:
A week has passed since we marked this issue as stale and
we’ve received no further feedback or input. As a result,
we are automatically closing it.
See https://oclif.io/docs/how_we_work for more
information on our stale issue policy.
Loading