diff options
author | Luke Karrys <luke@lukekarrys.com> | 2022-03-29 01:55:02 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-03-30 00:51:53 +0300 |
commit | aac01b89caf6336a2eb34d696296303cdadd5c08 (patch) | |
tree | c322cc32001ab169bd2e9e335ba7e4a45f31b4aa /workspaces/libnpmteam | |
parent | b48a2bfde3745fa21ea4fc18d6f562fd82f82545 (diff) |
deps: @npmcli/template-oss@3.2.1
- `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.
Diffstat (limited to 'workspaces/libnpmteam')
-rw-r--r-- | workspaces/libnpmteam/.eslintrc.js | 3 | ||||
-rw-r--r-- | workspaces/libnpmteam/.github/settings.yml | 2 | ||||
-rw-r--r-- | workspaces/libnpmteam/.github/workflows/ci.yml | 97 | ||||
-rw-r--r-- | workspaces/libnpmteam/.gitignore | 22 | ||||
-rw-r--r-- | workspaces/libnpmteam/.npmrc | 3 | ||||
-rw-r--r-- | workspaces/libnpmteam/SECURITY.md | 3 | ||||
-rw-r--r-- | workspaces/libnpmteam/package.json | 20 |
7 files changed, 23 insertions, 127 deletions
diff --git a/workspaces/libnpmteam/.eslintrc.js b/workspaces/libnpmteam/.eslintrc.js index 022767bc3..0e8ad0071 100644 --- a/workspaces/libnpmteam/.eslintrc.js +++ b/workspaces/libnpmteam/.eslintrc.js @@ -1,4 +1,4 @@ -// This file is automatically added by @npmcli/template-oss. Do not edit. +/* This file is automatically added by @npmcli/template-oss. Do not edit. */ const { readdirSync: readdir } = require('fs') @@ -7,6 +7,7 @@ const localConfigs = readdir(__dirname) .map((file) => `./${file}`) module.exports = { + root: true, extends: [ '@npmcli', ...localConfigs, diff --git a/workspaces/libnpmteam/.github/settings.yml b/workspaces/libnpmteam/.github/settings.yml deleted file mode 100644 index 1019e26fb..000000000 --- a/workspaces/libnpmteam/.github/settings.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -_extends: '.github:npm-cli/settings.yml' diff --git a/workspaces/libnpmteam/.github/workflows/ci.yml b/workspaces/libnpmteam/.github/workflows/ci.yml deleted file mode 100644 index c20a298c4..000000000 --- a/workspaces/libnpmteam/.github/workflows/ci.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -################################################################################ -# Template - Node CI -# -# Location: .github/workflows/{filename}.yml -# -# Description: -# This contains the basic information to: install dependencies, run tests, -# get coverage, and run linting on a nodejs project. This template will run -# over the MxN matrix of all operating systems, and all current LTS versions -# of NodeJS. -# -# Dependencies: -# This template assumes that your project is using the `tap` module for -# testing. If you're not using this module, then the step that runs your -# coverage will need to be adjusted. -# -################################################################################ -name: node-ci - -on: [push, pull_request] - -jobs: - build: - strategy: - fail-fast: false - matrix: - node-version: [10.x, 12.x, 13.x] - os: [ubuntu-latest, windows-latest, macOS-latest] - - runs-on: ${{ matrix.os }} - - steps: - # Checkout the repository - - uses: actions/checkout@v2 - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - ################################################################################ - # Install Dependencies - # - # ASSUMPTIONS: - # - The project has a package-lock.json file - # - # Simply run the tests for the project. - ################################################################################ - - name: Install dependencies - run: npm ci - - ################################################################################ - # Run Testing - # - # ASSUMPTIONS: - # - The project has `tap` as a devDependency - # - There is a script called "test" in the package.json - # - # Simply run the tests for the project. - ################################################################################ - - name: Run tests - if: github.event_name != 'push' || matrix.node-version != '12.x' || matrix.os != 'ubuntu-latest' - run: npm test -- --no-coverage - - ################################################################################ - # Run coverage check - # - # ASSUMPTIONS: - # - The project has `tap` as a devDependency - # - There is a script called "coverage" in the package.json - # - # Coverage should only be posted once, we are choosing the latest LTS of - # node, and ubuntu as the matrix point to post coverage from. We limit - # to the 'push' event so that coverage ins't posted twice from the - # pull-request event, and push event (line 3). - ################################################################################ - - name: Run coverage report - if: github.event_name == 'push' && matrix.node-version == '12.x' && matrix.os == 'ubuntu-latest' - run: npm test - env: - # The environment variable name is leveraged by `tap` - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - - ################################################################################ - # Run linting - # - # ASSUMPTIONS: - # - There is a script called "lint" in the package.json - # - # We run linting AFTER we run testing and coverage checks, because if a step - # fails in an GitHub Action, all other steps are not run. We don't want to - # fail to run tests or coverage because of linting. It should be the lowest - # priority of all the steps. - ################################################################################ - - name: Run linter - run: npm run lint diff --git a/workspaces/libnpmteam/.gitignore b/workspaces/libnpmteam/.gitignore index 6ed44c72b..617e50ca0 100644 --- a/workspaces/libnpmteam/.gitignore +++ b/workspaces/libnpmteam/.gitignore @@ -4,20 +4,18 @@ /* # keep these -!/.commitlintrc.js -!/.npmrc -!/.eslintrc* -!/.github +!/.eslintrc.local.* !**/.gitignore -!/package.json -!/docs -!/bin -!/lib +!/docs/ +!/tap-snapshots/ +!/test/ !/map.js -!/tap-snapshots -!/test -!/scripts +!/scripts/ !/README* !/LICENSE* -!/SECURITY* !/CHANGELOG* +!/.eslintrc.js +!/.gitignore +!/bin/ +!/lib/ +!/package.json diff --git a/workspaces/libnpmteam/.npmrc b/workspaces/libnpmteam/.npmrc deleted file mode 100644 index 878b7ddef..000000000 --- a/workspaces/libnpmteam/.npmrc +++ /dev/null @@ -1,3 +0,0 @@ -;This file is automatically added by @npmcli/template-oss. Do not edit. - -package-lock=false diff --git a/workspaces/libnpmteam/SECURITY.md b/workspaces/libnpmteam/SECURITY.md deleted file mode 100644 index a93106d0c..000000000 --- a/workspaces/libnpmteam/SECURITY.md +++ /dev/null @@ -1,3 +0,0 @@ -<!-- This file is automatically added by @npmcli/template-oss. Do not edit. --> - -Please send vulnerability reports through [hackerone](https://hackerone.com/github). diff --git a/workspaces/libnpmteam/package.json b/workspaces/libnpmteam/package.json index e7cfc2153..70a6e0a36 100644 --- a/workspaces/libnpmteam/package.json +++ b/workspaces/libnpmteam/package.json @@ -9,27 +9,28 @@ "preversion": "npm test", "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", - "lint": "eslint '**/*.js'", + "lint": "eslint \"**/*.js\"", "test": "tap", "posttest": "npm run lint", - "postlint": "npm-template-check", + "postlint": "template-oss-check", "lintfix": "npm run lint -- --fix", "snap": "tap", - "template-copy": "npm-template-copy --force" + "template-oss-apply": "template-oss-apply --force" }, "devDependencies": { - "@npmcli/template-oss": "^2.4.2", + "@npmcli/eslint-config": "^3.0.1", + "@npmcli/template-oss": "3.2.1", "nock": "^13.2.4", "tap": "^15" }, "repository": { "type": "git", - "url": "https://github.com/npm/cli", + "url": "https://github.com/npm/cli.git", "directory": "workspaces/libnpmteam" }, "files": [ - "bin", - "lib" + "bin/", + "lib/" ], "homepage": "https://npmjs.com/package/libnpmteam", "dependencies": { @@ -37,12 +38,13 @@ "npm-registry-fetch": "^13.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" }, "tap": { "check-coverage": true }, "templateOSS": { - "version": "2.9.2" + "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", + "version": "3.2.1" } } |