close
The Wayback Machine - https://web.archive.org/web/20220513033642/https://github.com/npm/cli/commit/aac01b89caf6336a2eb34d696296303cdadd5c08
Skip to content
Permalink
Browse files
deps: @npmcli/[email protected]
- `no-shadow` was disabled for the cli and arborist due to the amount
of changes required. These should be fixed later.
- Manually updated linting in the cli root to match closer to what
template-oss does
- Included docs to be managed with template-oss. This required adding
an empty test for now, with the plan to add real tests later.
  • Loading branch information
lukekarrys committed Mar 29, 2022
1 parent b48a2bf commit aac01b89caf6336a2eb34d696296303cdadd5c08
Showing with 2,451 additions and 4,139 deletions.
  1. +13 −0 .eslintrc.js
  2. +0 −15 .eslintrc.json
  3. +21 −0 .eslintrc.local.json
  4. +18 −23 .github/workflows/ci-docs.yml
  5. +47 −20 .github/workflows/ci-libnpmaccess.yml
  6. +47 −20 .github/workflows/ci-libnpmdiff.yml
  7. +47 −20 .github/workflows/ci-libnpmexec.yml
  8. +47 −20 .github/workflows/ci-libnpmfund.yml
  9. +47 −20 .github/workflows/ci-libnpmhook.yml
  10. +47 −20 .github/workflows/ci-libnpmorg.yml
  11. +47 −20 .github/workflows/ci-libnpmpack.yml
  12. +47 −20 .github/workflows/ci-libnpmpublish.yml
  13. +47 −20 .github/workflows/ci-libnpmsearch.yml
  14. +47 −20 .github/workflows/ci-libnpmteam.yml
  15. +47 −20 .github/workflows/ci-libnpmversion.yml
  16. +47 −20 .github/workflows/ci-npmcli-arborist.yml
  17. +0 −1 .github/workflows/ci.yml
  18. +11 −10 .github/workflows/release-please-libnpmaccess.yml
  19. +11 −10 .github/workflows/release-please-libnpmdiff.yml
  20. +11 −10 .github/workflows/release-please-libnpmexec.yml
  21. +11 −10 .github/workflows/release-please-libnpmfund.yml
  22. +11 −10 .github/workflows/release-please-libnpmhook.yml
  23. +11 −10 .github/workflows/release-please-libnpmorg.yml
  24. +11 −10 .github/workflows/release-please-libnpmpack.yml
  25. +11 −10 .github/workflows/release-please-libnpmpublish.yml
  26. +11 −10 .github/workflows/release-please-libnpmsearch.yml
  27. +11 −10 .github/workflows/release-please-libnpmteam.yml
  28. +11 −10 .github/workflows/release-please-libnpmversion.yml
  29. +11 −10 .github/workflows/release-please-npmcli-arborist.yml
  30. +36 −30 .gitignore
  31. +15 −0 docs/.eslintrc.js
  32. +24 −0 docs/.gitignore
  33. +2 −2 docs/dockhand.js
  34. +39 −4 docs/package.json
  35. +3 −0 docs/test/index.js
  36. +4 −0 node_modules/.gitignore
  37. +1,249 −3,123 package-lock.json
  38. +7 −23 package.json
  39. +2 −1 workspaces/arborist/.eslintrc.js
  40. +6 −1 workspaces/arborist/.eslintrc.local.json
  41. +10 −12 workspaces/arborist/.gitignore
  42. +0 −3 workspaces/arborist/.npmrc
  43. +0 −3 workspaces/arborist/SECURITY.md
  44. +11 −13 workspaces/arborist/package.json
  45. +2 −1 workspaces/libnpmaccess/.eslintrc.js
  46. +10 −12 workspaces/libnpmaccess/.gitignore
  47. +0 −3 workspaces/libnpmaccess/.npmrc
  48. +0 −1 workspaces/libnpmaccess/CHANGELOG.md
  49. +0 −3 workspaces/libnpmaccess/SECURITY.md
  50. +1 −1 workspaces/libnpmaccess/lib/index.js
  51. +11 −9 workspaces/libnpmaccess/package.json
  52. +2 −1 workspaces/libnpmdiff/.eslintrc.js
  53. +10 −12 workspaces/libnpmdiff/.gitignore
  54. +0 −3 workspaces/libnpmdiff/.npmrc
  55. +0 −3 workspaces/libnpmdiff/SECURITY.md
  56. +11 −10 workspaces/libnpmdiff/package.json
  57. +2 −2 workspaces/libnpmdiff/test/tarball.js
  58. +0 −3 workspaces/libnpmexec/.editorconfig
  59. +2 −1 workspaces/libnpmexec/.eslintrc.js
  60. +10 −12 workspaces/libnpmexec/.gitignore
  61. +0 −3 workspaces/libnpmexec/.npmrc
  62. +0 −68 workspaces/libnpmexec/CONTRIBUTING.md
  63. +0 −3 workspaces/libnpmexec/SECURITY.md
  64. +1 −1 workspaces/libnpmexec/lib/file-exists.js
  65. +2 −2 workspaces/libnpmexec/lib/index.js
  66. +11 −9 workspaces/libnpmexec/package.json
  67. +22 −22 workspaces/libnpmexec/test/index.js
  68. +8 −8 workspaces/libnpmexec/test/registry/server.js
  69. +0 −3 workspaces/libnpmfund/.editorconfig
  70. +2 −1 workspaces/libnpmfund/.eslintrc.js
  71. +10 −12 workspaces/libnpmfund/.gitignore
  72. +0 −3 workspaces/libnpmfund/.npmrc
  73. +0 −3 workspaces/libnpmfund/SECURITY.md
  74. +2 −2 workspaces/libnpmfund/lib/index.js
  75. +11 −9 workspaces/libnpmfund/package.json
  76. +2 −2 workspaces/libnpmfund/{test.js → test/index.js}
  77. +2 −1 workspaces/libnpmhook/.eslintrc.js
  78. +10 −12 workspaces/libnpmhook/.gitignore
  79. +0 −3 workspaces/libnpmhook/.npmrc
  80. +0 −3 workspaces/libnpmhook/SECURITY.md
  81. +11 −9 workspaces/libnpmhook/package.json
  82. +2 −1 workspaces/libnpmorg/.eslintrc.js
  83. +10 −12 workspaces/libnpmorg/.gitignore
  84. +0 −3 workspaces/libnpmorg/.npmrc
  85. +0 −3 workspaces/libnpmorg/SECURITY.md
  86. +11 −9 workspaces/libnpmorg/package.json
  87. +2 −1 workspaces/libnpmpack/.eslintrc.js
  88. +10 −12 workspaces/libnpmpack/.gitignore
  89. +0 −3 workspaces/libnpmpack/.npmrc
  90. +0 −3 workspaces/libnpmpack/SECURITY.md
  91. +11 −9 workspaces/libnpmpack/package.json
  92. +2 −1 workspaces/libnpmpublish/.eslintrc.js
  93. +10 −12 workspaces/libnpmpublish/.gitignore
  94. +0 −3 workspaces/libnpmpublish/.npmrc
  95. +0 −3 workspaces/libnpmpublish/SECURITY.md
  96. +11 −9 workspaces/libnpmpublish/package.json
  97. +2 −1 workspaces/libnpmsearch/.eslintrc.js
  98. +10 −12 workspaces/libnpmsearch/.gitignore
  99. +0 −3 workspaces/libnpmsearch/.npmrc
  100. +0 −3 workspaces/libnpmsearch/SECURITY.md
  101. +11 −9 workspaces/libnpmsearch/package.json
  102. +2 −1 workspaces/libnpmteam/.eslintrc.js
  103. +0 −2 workspaces/libnpmteam/.github/settings.yml
  104. +0 −97 workspaces/libnpmteam/.github/workflows/ci.yml
  105. +10 −12 workspaces/libnpmteam/.gitignore
  106. +0 −3 workspaces/libnpmteam/.npmrc
  107. +0 −3 workspaces/libnpmteam/SECURITY.md
  108. +11 −9 workspaces/libnpmteam/package.json
  109. +2 −1 workspaces/libnpmversion/.eslintrc.js
  110. +10 −12 workspaces/libnpmversion/.gitignore
  111. +0 −3 workspaces/libnpmversion/.npmrc
  112. +0 −3 workspaces/libnpmversion/SECURITY.md
  113. +11 −9 workspaces/libnpmversion/package.json
  114. +2 −2 workspaces/libnpmversion/test/version.js
@@ -0,0 +1,13 @@
const { readdirSync: readdir } = require('fs')

const localConfigs = readdir(__dirname)
.filter((file) => file.startsWith('.eslintrc.local.'))
.map((file) => `./${file}`)

module.exports = {
root: true,
extends: [
'@npmcli',
...localConfigs,
],
}

This file was deleted.

@@ -0,0 +1,21 @@
{
"ignorePatterns": [
"docs/",
"workspaces/*"
],
"rules": {
"no-shadow": "off",
"no-console": "error"
},
"overrides": [{
"files": [
"scripts/**",
"smoke-tests/**",
"bin/**",
"test/**"
],
"rules": {
"no-console": "off"
}
}]
}
@@ -1,50 +1,45 @@
name: Node CI docs
name: CI - docs

on:
workflow_dispatch:
pull_request:
paths:
- docs/**
branches:
- '*'
push:
paths:
- docs/**
push:
branches:
- release-next
- main
- latest
workflow_dispatch:
paths:
- docs/**
schedule:
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
- cron: "0 2 * * 1"

jobs:
lint:
runs-on: ubuntu-latest
steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
- name: Install dependencies
run: |
node-version: 16.x
- run: |
node ./bin/npm-cli.js install --ignore-scripts --no-audit
node ./bin/npm-cli.js rebuild
- name: Run linting
run: node ./bin/npm-cli.js run lint -w docs
- run: node ./bin/npm-cli.js run lint -w docs
env:
DEPLOY_VERSION: testing

check_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
- name: Install dependencies
run: |
node-version: 16.x
- run: |
node ./bin/npm-cli.js install --ignore-scripts --no-audit
- name: Rebuild the docs
run: make freshdocs
@@ -1,35 +1,53 @@
name: Node Workspace CI libnpmaccess
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - libnpmaccess

on:
workflow_dispatch:
pull_request:
branches:
- '*'
paths:
- workspaces/libnpmaccess/**
push:
paths:
- workspaces/libnpmaccess/**
branches:
- release-next
- main
- latest
workflow_dispatch:
paths:
- workspaces/libnpmaccess/**
schedule:
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
- cron: "0 2 * * 1"

jobs:
lint:
runs-on: ubuntu-latest
steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "npm cli ops bot"
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm i --prefer-online -g npm@latest
- run: npm i
- run: npm run lint -w workspaces/libnpmaccess
node-version: 16.x
- name: Update npm to latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i --ignore-scripts
- run: npm run lint -w libnpmaccess

test:
strategy:
fail-fast: false
matrix:
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x]
node-version:
- 12.13.0
- 12.x
- 14.15.0
- 14.x
- 16.0.0
- 16.x
platform:
- os: ubuntu-latest
shell: bash
@@ -42,22 +60,31 @@ jobs:
run:
shell: ${{ matrix.platform.shell }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "npm cli ops bot"
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
- name: Update to workable npm (windows)
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12') || startsWith(matrix.node-version, '14'))
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
run: |
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
tar xf npm-7.5.4.tgz
cd package
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
cd ..
rmdir /s /q package
- name: Update npm
- name: Update npm to 7
# If we do test on npm 10 it needs npm7
if: startsWith(matrix.node-version, '10.')
run: npm i --prefer-online --no-fund --no-audit -g npm@7
- name: Update npm to latest
if: ${{ !startsWith(matrix.node-version, '10.') }}
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i
- run: npm test --ignore-scripts -w workspaces/libnpmaccess
- run: npm i --ignore-scripts
- run: npm test --ignore-scripts -w libnpmaccess
@@ -1,35 +1,53 @@
name: Node Workspace CI libnpmdiff
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - libnpmdiff

on:
workflow_dispatch:
pull_request:
branches:
- '*'
paths:
- workspaces/libnpmdiff/**
push:
paths:
- workspaces/libnpmdiff/**
branches:
- release-next
- main
- latest
workflow_dispatch:
paths:
- workspaces/libnpmdiff/**
schedule:
# "At 02:00 on Monday" https://crontab.guru/#0_2_*_*_1
- cron: "0 2 * * 1"

jobs:
lint:
runs-on: ubuntu-latest
steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "npm cli ops bot"
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm i --prefer-online -g npm@latest
- run: npm i
- run: npm run lint -w workspaces/libnpmdiff
node-version: 16.x
- name: Update npm to latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i --ignore-scripts
- run: npm run lint -w libnpmdiff

test:
strategy:
fail-fast: false
matrix:
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x]
node-version:
- 12.13.0
- 12.x
- 14.15.0
- 14.x
- 16.0.0
- 16.x
platform:
- os: ubuntu-latest
shell: bash
@@ -42,22 +60,31 @@ jobs:
run:
shell: ${{ matrix.platform.shell }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "npm cli ops bot"
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
- name: Update to workable npm (windows)
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12') || startsWith(matrix.node-version, '14'))
# node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
run: |
curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
tar xf npm-7.5.4.tgz
cd package
node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
cd ..
rmdir /s /q package
- name: Update npm
- name: Update npm to 7
# If we do test on npm 10 it needs npm7
if: startsWith(matrix.node-version, '10.')
run: npm i --prefer-online --no-fund --no-audit -g npm@7
- name: Update npm to latest
if: ${{ !startsWith(matrix.node-version, '10.') }}
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- run: npm -v
- run: npm i
- run: npm test --ignore-scripts -w workspaces/libnpmdiff
- run: npm i --ignore-scripts
- run: npm test --ignore-scripts -w libnpmdiff

0 comments on commit aac01b8

Please sign in to comment.