Skip to content

Commit 5dfc980

Browse files
committedJan 13, 2022
chore: template-oss@2.4.0
1 parent 626f59b commit 5dfc980

14 files changed

+125
-9905
lines changed
 

‎.commitlintrc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional'],
5+
// If you change rules be sure to also update release-please.yml
6+
rules: {
7+
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'chore', 'deps']],
8+
'header-max-length': [2, 'always', 80],
9+
'subject-case': [2, 'always', ['lower-case', 'sentence-case', 'start-case']],
10+
},
11+
}

‎.editorconfig

-3
This file was deleted.

‎.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @npm/cli-team

‎.github/dependabot.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: npm
6+
directory: "/"
7+
schedule:
8+
interval: daily
9+
allow:
10+
- dependency-type: direct
11+
versioning-strategy: increase-if-necessary
12+
commit-message:
13+
prefix: deps
14+
prefix-development: chore
15+
labels:
16+
- "dependencies"

‎.github/workflows/audit.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: Audit
4+
5+
on:
6+
schedule:
7+
# "At 01:00 on Monday" https://crontab.guru/#0_1_*_*_1
8+
- cron: "0 1 * * 1"
9+
workflow_dispatch:
10+
11+
jobs:
12+
audit:
13+
name: npm audit
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
- name: Install deps
21+
run: npm i --package-lock
22+
- name: Audit
23+
run: npm audit

‎.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010
- latest
11+
schedule:
12+
# "At 02:00 on Monday" https://crontab.guru/#0_1_*_*_1
13+
- cron: "0 2 * * 1"
1114

1215
jobs:
1316
lint:
@@ -17,16 +20,15 @@ jobs:
1720
- uses: actions/setup-node@v2
1821
with:
1922
node-version: '16'
20-
cache: npm
2123
- run: npm i --prefer-online -g npm@latest
22-
- run: npm ci
24+
- run: npm i
2325
- run: npm run lint
2426

2527
test:
2628
strategy:
2729
fail-fast: false
2830
matrix:
29-
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.x]
31+
node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x]
3032
platform:
3133
- os: ubuntu-latest
3234
shell: bash
@@ -47,8 +49,6 @@ jobs:
4749
- uses: actions/setup-node@v2
4850
with:
4951
node-version: ${{ matrix.node-version }}
50-
cache: npm
5152
- run: npm i --prefer-online -g npm@latest
52-
- run: npm ci
53+
- run: npm i
5354
- run: npm test --ignore-scripts
54-
- run: npm ls -a

‎.github/workflows/pull-request.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: Pull Request Linting
4+
5+
on:
6+
pull_request:
7+
types: [opened, reopened, edited, synchronize]
8+
9+
jobs:
10+
check:
11+
name: Check PR Title or Commits
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
- name: Install deps
21+
run: |
22+
npm i -D @commitlint/cli @commitlint/config-conventional
23+
- name: Check commits OR PR title
24+
env:
25+
PR_TITLE: ${{ github.event.pull_request.title }}
26+
run: |
27+
npx commitlint -x @commitlint/config-conventional -V --from origin/main --to ${{ github.event.pull_request.head.sha }} || echo $PR_TITLE | npx commitlint -x @commitlint/config-conventional -V

‎.github/workflows/release-please.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
name: Release Please
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
release-please:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: google-github-actions/release-please-action@v2
15+
id: release
16+
with:
17+
package-name: conventional-test
18+
release-type: node
19+
# If you change changelog-types be sure to also update commitlintrc.js
20+
changelog-types: >
21+
[{"type":"feat","section":"Features","hidden":false},
22+
{"type":"fix","section":"Bug Fixes","hidden":false},
23+
{"type":"docs","section":"Documentation","hidden":false},
24+
{"type":"deps","section":"dependencies","hidden":false},
25+
{"type":"chore","hidden":true}]

‎.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44
/*
55

66
# keep these
7+
!/.commitlintrc.js
8+
!/.npmrc
79
!/.eslintrc*
810
!/.github
911
!**/.gitignore
1012
!/package.json
11-
!/package-lock.json
13+
!/docs
1214
!/bin
1315
!/lib
1416
!/map.js
1517
!/tap-snapshots
1618
!/test
19+
!/scripts
1720
!/README*
1821
!/LICENSE*
22+
!/SECURITY*
23+
!/CHANGELOG*

‎.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
;This file is automatically added by @npmcli/template-oss. Do not edit.
2+
3+
package-lock=false

‎SECURITY.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
2+
3+
Please send vulnerability reports through [hackerone](https://hackerone.com/github).

‎CONTRIBUTING.md ‎docs

File renamed without changes.

‎package-lock.json

-9,893
This file was deleted.

‎package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
]
4343
},
4444
"devDependencies": {
45+
"@npmcli/template-oss": "^2.4.0",
4546
"eslint": "^8.0.0",
4647
"require-inject": "^1.4.4",
47-
"@npmcli/template-oss": "^2.0.0",
4848
"tap": "^15.0.10"
4949
},
5050
"dependencies": {
@@ -53,5 +53,7 @@
5353
"minimatch": "^3.0.4",
5454
"read-package-json-fast": "^2.0.1"
5555
},
56-
"templateVersion": "2.0.0"
56+
"templateOSS": {
57+
"version": "2.4.0"
58+
}
5759
}

0 commit comments

Comments
 (0)
Please sign in to comment.