Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
with
2,451 additions
and 4,139 deletions.
- +13 −0 .eslintrc.js
- +0 −15 .eslintrc.json
- +21 −0 .eslintrc.local.json
- +18 −23 .github/workflows/ci-docs.yml
- +47 −20 .github/workflows/ci-libnpmaccess.yml
- +47 −20 .github/workflows/ci-libnpmdiff.yml
- +47 −20 .github/workflows/ci-libnpmexec.yml
- +47 −20 .github/workflows/ci-libnpmfund.yml
- +47 −20 .github/workflows/ci-libnpmhook.yml
- +47 −20 .github/workflows/ci-libnpmorg.yml
- +47 −20 .github/workflows/ci-libnpmpack.yml
- +47 −20 .github/workflows/ci-libnpmpublish.yml
- +47 −20 .github/workflows/ci-libnpmsearch.yml
- +47 −20 .github/workflows/ci-libnpmteam.yml
- +47 −20 .github/workflows/ci-libnpmversion.yml
- +47 −20 .github/workflows/ci-npmcli-arborist.yml
- +0 −1 .github/workflows/ci.yml
- +11 −10 .github/workflows/release-please-libnpmaccess.yml
- +11 −10 .github/workflows/release-please-libnpmdiff.yml
- +11 −10 .github/workflows/release-please-libnpmexec.yml
- +11 −10 .github/workflows/release-please-libnpmfund.yml
- +11 −10 .github/workflows/release-please-libnpmhook.yml
- +11 −10 .github/workflows/release-please-libnpmorg.yml
- +11 −10 .github/workflows/release-please-libnpmpack.yml
- +11 −10 .github/workflows/release-please-libnpmpublish.yml
- +11 −10 .github/workflows/release-please-libnpmsearch.yml
- +11 −10 .github/workflows/release-please-libnpmteam.yml
- +11 −10 .github/workflows/release-please-libnpmversion.yml
- +11 −10 .github/workflows/release-please-npmcli-arborist.yml
- +36 −30 .gitignore
- +15 −0 docs/.eslintrc.js
- +24 −0 docs/.gitignore
- +2 −2 docs/dockhand.js
- +39 −4 docs/package.json
- +3 −0 docs/test/index.js
- +4 −0 node_modules/.gitignore
- +1,249 −3,123 package-lock.json
- +7 −23 package.json
- +2 −1 workspaces/arborist/.eslintrc.js
- +6 −1 workspaces/arborist/.eslintrc.local.json
- +10 −12 workspaces/arborist/.gitignore
- +0 −3 workspaces/arborist/.npmrc
- +0 −3 workspaces/arborist/SECURITY.md
- +11 −13 workspaces/arborist/package.json
- +2 −1 workspaces/libnpmaccess/.eslintrc.js
- +10 −12 workspaces/libnpmaccess/.gitignore
- +0 −3 workspaces/libnpmaccess/.npmrc
- +0 −1 workspaces/libnpmaccess/CHANGELOG.md
- +0 −3 workspaces/libnpmaccess/SECURITY.md
- +1 −1 workspaces/libnpmaccess/lib/index.js
- +11 −9 workspaces/libnpmaccess/package.json
- +2 −1 workspaces/libnpmdiff/.eslintrc.js
- +10 −12 workspaces/libnpmdiff/.gitignore
- +0 −3 workspaces/libnpmdiff/.npmrc
- +0 −3 workspaces/libnpmdiff/SECURITY.md
- +11 −10 workspaces/libnpmdiff/package.json
- +2 −2 workspaces/libnpmdiff/test/tarball.js
- +0 −3 workspaces/libnpmexec/.editorconfig
- +2 −1 workspaces/libnpmexec/.eslintrc.js
- +10 −12 workspaces/libnpmexec/.gitignore
- +0 −3 workspaces/libnpmexec/.npmrc
- +0 −68 workspaces/libnpmexec/CONTRIBUTING.md
- +0 −3 workspaces/libnpmexec/SECURITY.md
- +1 −1 workspaces/libnpmexec/lib/file-exists.js
- +2 −2 workspaces/libnpmexec/lib/index.js
- +11 −9 workspaces/libnpmexec/package.json
- +22 −22 workspaces/libnpmexec/test/index.js
- +8 −8 workspaces/libnpmexec/test/registry/server.js
- +0 −3 workspaces/libnpmfund/.editorconfig
- +2 −1 workspaces/libnpmfund/.eslintrc.js
- +10 −12 workspaces/libnpmfund/.gitignore
- +0 −3 workspaces/libnpmfund/.npmrc
- +0 −3 workspaces/libnpmfund/SECURITY.md
- +2 −2 workspaces/libnpmfund/lib/index.js
- +11 −9 workspaces/libnpmfund/package.json
- +2 −2 workspaces/libnpmfund/{test.js → test/index.js}
- +2 −1 workspaces/libnpmhook/.eslintrc.js
- +10 −12 workspaces/libnpmhook/.gitignore
- +0 −3 workspaces/libnpmhook/.npmrc
- +0 −3 workspaces/libnpmhook/SECURITY.md
- +11 −9 workspaces/libnpmhook/package.json
- +2 −1 workspaces/libnpmorg/.eslintrc.js
- +10 −12 workspaces/libnpmorg/.gitignore
- +0 −3 workspaces/libnpmorg/.npmrc
- +0 −3 workspaces/libnpmorg/SECURITY.md
- +11 −9 workspaces/libnpmorg/package.json
- +2 −1 workspaces/libnpmpack/.eslintrc.js
- +10 −12 workspaces/libnpmpack/.gitignore
- +0 −3 workspaces/libnpmpack/.npmrc
- +0 −3 workspaces/libnpmpack/SECURITY.md
- +11 −9 workspaces/libnpmpack/package.json
- +2 −1 workspaces/libnpmpublish/.eslintrc.js
- +10 −12 workspaces/libnpmpublish/.gitignore
- +0 −3 workspaces/libnpmpublish/.npmrc
- +0 −3 workspaces/libnpmpublish/SECURITY.md
- +11 −9 workspaces/libnpmpublish/package.json
- +2 −1 workspaces/libnpmsearch/.eslintrc.js
- +10 −12 workspaces/libnpmsearch/.gitignore
- +0 −3 workspaces/libnpmsearch/.npmrc
- +0 −3 workspaces/libnpmsearch/SECURITY.md
- +11 −9 workspaces/libnpmsearch/package.json
- +2 −1 workspaces/libnpmteam/.eslintrc.js
- +0 −2 workspaces/libnpmteam/.github/settings.yml
- +0 −97 workspaces/libnpmteam/.github/workflows/ci.yml
- +10 −12 workspaces/libnpmteam/.gitignore
- +0 −3 workspaces/libnpmteam/.npmrc
- +0 −3 workspaces/libnpmteam/SECURITY.md
- +11 −9 workspaces/libnpmteam/package.json
- +2 −1 workspaces/libnpmversion/.eslintrc.js
- +10 −12 workspaces/libnpmversion/.gitignore
- +0 −3 workspaces/libnpmversion/.npmrc
- +0 −3 workspaces/libnpmversion/SECURITY.md
- +11 −9 workspaces/libnpmversion/package.json
- +2 −2 workspaces/libnpmversion/test/version.js
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
| @@ -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 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
| @@ -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" | ||
| } | ||
| }] | ||
| } |
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
| @@ -1,35 +1,53 @@ | ||
| # 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: | ||
| branches: | ||
| - main | ||
| - latest | ||
| 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: | ||
| - 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.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.0.0 | ||
| - 16.x | ||
| platform: | ||
| - os: ubuntu-latest | ||
| shell: bash | ||
| @@ -42,22 +60,31 @@ jobs: | ||
| run: | ||
| shell: ${{ matrix.platform.shell }} | ||
| steps: | ||
| - 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 }} | ||
| - name: Update to workable npm (windows) | ||
| # 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 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 --ignore-scripts | ||
| - run: npm test --ignore-scripts -w libnpmaccess | ||
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
| @@ -1,35 +1,53 @@ | ||
| # 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: | ||
| branches: | ||
| - main | ||
| - latest | ||
| 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: | ||
| - 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.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.0.0 | ||
| - 16.x | ||
| platform: | ||
| - os: ubuntu-latest | ||
| shell: bash | ||
| @@ -42,22 +60,31 @@ jobs: | ||
| run: | ||
| shell: ${{ matrix.platform.shell }} | ||
| steps: | ||
| - 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 }} | ||
| - name: Update to workable npm (windows) | ||
| # 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 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 --ignore-scripts | ||
| - run: npm test --ignore-scripts -w libnpmdiff | ||
Oops, something went wrong.

