@npmcli/template-oss 1.0.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1,3 +1,5 @@
1
+ <!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
2
+
1
3
  ISC License
2
4
 
3
5
  Copyright npm, Inc.
@@ -1,3 +1,5 @@
1
+ <!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
2
+
1
3
  ISC License
2
4
 
3
5
  Copyright npm, Inc.
@@ -0,0 +1 @@
1
+ Please send vulnerability reports through [hackerone](https://hackerone.com/github).
@@ -0,0 +1,54 @@
1
+ # This file is automatically added by @npmcli/template-oss. Do not edit.
2
+
3
+ name: Bug
4
+ description: File a bug/issue
5
+ title: "[BUG] <title>"
6
+ labels: [Bug, Needs Triage]
7
+ body:
8
+ - type: checkboxes
9
+ attributes:
10
+ label: Is there an existing issue for this?
11
+ description: Please [search here](./issues) to see if an issue already exists for your problem.
12
+ options:
13
+ - label: I have searched the existing issues
14
+ required: true
15
+ - type: textarea
16
+ attributes:
17
+ label: Current Behavior
18
+ description: A clear & concise description of what you're experiencing.
19
+ validations:
20
+ required: false
21
+ - type: textarea
22
+ attributes:
23
+ label: Expected Behavior
24
+ description: A clear & concise description of what you expected to happen.
25
+ validations:
26
+ required: false
27
+ - type: textarea
28
+ attributes:
29
+ label: Steps To Reproduce
30
+ description: Steps to reproduce the behavior.
31
+ value: |
32
+ 1. In this environment...
33
+ 2. With this config...
34
+ 3. Run '...'
35
+ 4. See error...
36
+ validations:
37
+ required: false
38
+ - type: textarea
39
+ attributes:
40
+ label: Environment
41
+ description: |
42
+ examples:
43
+ - **npm**: 7.6.3
44
+ - **Node**: 13.14.0
45
+ - **OS**: Ubuntu 20.04
46
+ - **platform**: Macbook Pro
47
+ value: |
48
+ - npm:
49
+ - Node:
50
+ - OS:
51
+ - platform:
52
+ validations:
53
+ required: false
54
+
@@ -1,3 +1,5 @@
1
+ # This file is automatically added by @npmcli/template-oss. Do not edit.
2
+
1
3
  name: CI
2
4
 
3
5
  on:
@@ -24,7 +26,7 @@ jobs:
24
26
  strategy:
25
27
  fail-fast: false
26
28
  matrix:
27
- node-version: [10.0.x, 10.x, 12.0.x, 12.x, 14.0.x, 14.x, 15.x, 16.x]
29
+ node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.x]
28
30
  platform:
29
31
  - os: ubuntu-latest
30
32
  shell: bash
@@ -0,0 +1,3 @@
1
+ # This file is automatically added by @npmcli/template-oss. Do not edit.
2
+
3
+ blank_issues_enabled: true
@@ -1,3 +1,5 @@
1
+ // This file is automatically added by @npmcli/template-oss. Do not edit.
2
+
1
3
  const { readdirSync: readdir } = require('fs')
2
4
 
3
5
  const localConfigs = readdir(__dirname)
@@ -1,3 +1,5 @@
1
+ # This file is automatically added by @npmcli/template-oss. Do not edit.
2
+
1
3
  # ignore everything in the root
2
4
  /*
3
5
 
@@ -6,8 +6,11 @@ const fs = require('@npmcli/fs')
6
6
  const content = {
7
7
  '.eslintrc.js': './eslintrc.js',
8
8
  '.github/workflows/ci.yml': './ci.yml',
9
+ '.github/ISSUE_TEMPLATE/bug.yml': './bug.yml',
10
+ '.github/ISSUE_TEMPLATE/config.yml': './config.yml',
9
11
  '.gitignore': './gitignore',
10
12
  'LICENSE.md': './LICENSE.md',
13
+ 'SECURITY.md': './SECURITY.md',
11
14
  }
12
15
 
13
16
  // given a root directory, copy all files in the content map
package/lib/package.js CHANGED
@@ -18,6 +18,9 @@ const changes = {
18
18
  test: 'tap',
19
19
  posttest: 'npm run lint',
20
20
  },
21
+ engines: {
22
+ node: '^12.13.0 || ^14.15.0 || >=16',
23
+ },
21
24
  }
22
25
 
23
26
  const patchPackage = async (root) => {
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
7
7
  "npm-template-check": "bin/npm-template-check.js"
8
8
  },
9
9
  "scripts": {
10
- "prelint": "ln -sf ../../bin/npm-template-check.js node_modules/.bin/npm-template-check",
11
10
  "lint": "eslint '**/*.js'",
12
- "postlint": "npm-template-check",
13
11
  "lintfix": "npm run lint -- --fix",
14
- "preversion": "npm test",
12
+ "postinstall": "node bin/postinstall.js",
13
+ "postlint": "npm-template-check",
14
+ "posttest": "npm run lint",
15
15
  "postversion": "npm publish",
16
+ "prelint": "ln -sf ../../bin/npm-template-check.js node_modules/.bin/npm-template-check",
16
17
  "prepublishOnly": "git push origin --follow-tags",
18
+ "preversion": "npm test",
17
19
  "snap": "tap",
18
- "test": "tap",
19
- "posttest": "npm run lint",
20
- "postinstall": "node bin/postinstall.js"
20
+ "test": "tap"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",
@@ -48,5 +48,8 @@
48
48
  "@npmcli/eslint-config": "^1.0.0",
49
49
  "tap": "^15.0.9"
50
50
  },
51
- "templateVersion": "1.0.2"
51
+ "templateVersion": "1.0.3",
52
+ "engines": {
53
+ "node": "^12.13.0 || ^14.15.0 || >=16"
54
+ }
52
55
  }