create-node-lib 2.5.0 → 2.6.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/.github/CODEOWNERS +1 -0
- package/.github/workflows/main.yml +12 -12
- package/package.json +29 -26
- package/saofile.js +0 -8
- package/template/.github/workflows/main.yml +9 -9
- package/template/gitignore +3 -2
- package/template/package.json +36 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @lirantal
|
|
@@ -7,12 +7,12 @@ jobs:
|
|
|
7
7
|
# name: Lint
|
|
8
8
|
# runs-on: 'ubuntu-latest'
|
|
9
9
|
# steps:
|
|
10
|
-
# - uses: actions/checkout@
|
|
11
|
-
# - uses: actions/setup-node@
|
|
10
|
+
# - uses: actions/checkout@v3
|
|
11
|
+
# - uses: actions/setup-node@v3
|
|
12
12
|
# with:
|
|
13
|
-
# node-version: '
|
|
13
|
+
# node-version: '18'
|
|
14
14
|
# - name: install dependencies
|
|
15
|
-
# run: npm ci
|
|
15
|
+
# run: npm ci --audit false
|
|
16
16
|
# - name: lint code
|
|
17
17
|
# run: npm run lint
|
|
18
18
|
|
|
@@ -20,16 +20,16 @@ jobs:
|
|
|
20
20
|
strategy:
|
|
21
21
|
matrix:
|
|
22
22
|
platform: [ubuntu-latest]
|
|
23
|
-
node: ['
|
|
23
|
+
node: ['16', '18']
|
|
24
24
|
name: Tests - Node ${{ matrix.node }} (${{ matrix.platform }})
|
|
25
25
|
runs-on: ${{ matrix.platform }}
|
|
26
26
|
steps:
|
|
27
|
-
- uses: actions/checkout@
|
|
28
|
-
- uses: actions/setup-node@
|
|
27
|
+
- uses: actions/checkout@v3
|
|
28
|
+
- uses: actions/setup-node@v3
|
|
29
29
|
with:
|
|
30
30
|
node-version: ${{ matrix.node }}
|
|
31
31
|
- name: install dependencies
|
|
32
|
-
run: npm ci --ignore-engines
|
|
32
|
+
run: npm ci --ignore-engines --audit false
|
|
33
33
|
- name: run tests
|
|
34
34
|
run: npm run test
|
|
35
35
|
- name: code coverage report
|
|
@@ -43,12 +43,12 @@ jobs:
|
|
|
43
43
|
needs: build
|
|
44
44
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
45
45
|
steps:
|
|
46
|
-
- uses: actions/checkout@
|
|
47
|
-
- uses: actions/setup-node@
|
|
46
|
+
- uses: actions/checkout@v3
|
|
47
|
+
- uses: actions/setup-node@v3
|
|
48
48
|
with:
|
|
49
|
-
node-version: '
|
|
49
|
+
node-version: '18'
|
|
50
50
|
- name: install dependencies
|
|
51
|
-
run: npm ci --ignore-engines --only=production
|
|
51
|
+
run: npm ci --ignore-engines --only=production --audit false
|
|
52
52
|
- name: release
|
|
53
53
|
run: npx semantic-release
|
|
54
54
|
env:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-node-lib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Scaffolding out a Node.js library module",
|
|
5
5
|
"bin": "./bin/cli.js",
|
|
6
6
|
"engines": {
|
|
@@ -43,36 +43,36 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"sao": "^1.7.1",
|
|
46
|
-
"validate-npm-package-name": "^
|
|
46
|
+
"validate-npm-package-name": "^5.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@commitlint/cli": "^
|
|
50
|
-
"@commitlint/config-conventional": "^
|
|
51
|
-
"@semantic-release/changelog": "^
|
|
52
|
-
"@semantic-release/commit-analyzer": "^
|
|
53
|
-
"@semantic-release/git": "^
|
|
54
|
-
"@semantic-release/github": "^
|
|
55
|
-
"@semantic-release/npm": "^
|
|
56
|
-
"@semantic-release/release-notes-generator": "^
|
|
49
|
+
"@commitlint/cli": "^17.4.2",
|
|
50
|
+
"@commitlint/config-conventional": "^17.4.2",
|
|
51
|
+
"@semantic-release/changelog": "^6.0.2",
|
|
52
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
53
|
+
"@semantic-release/git": "^10.0.1",
|
|
54
|
+
"@semantic-release/github": "^8.0.7",
|
|
55
|
+
"@semantic-release/npm": "^9.0.2",
|
|
56
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
57
57
|
"babel-eslint": "^10.0.1",
|
|
58
58
|
"babel-plugin-syntax-async-functions": "^6.13.0",
|
|
59
59
|
"babel-plugin-transform-regenerator": "^6.26.0",
|
|
60
|
-
"babel-preset-env": "^1.
|
|
60
|
+
"babel-preset-env": "^1.7.0",
|
|
61
61
|
"decompress": "^4.2.1",
|
|
62
|
-
"eslint": "^
|
|
63
|
-
"eslint-config-standard": "^
|
|
64
|
-
"eslint-plugin-import": "^2.
|
|
65
|
-
"eslint-plugin-jest": "^
|
|
66
|
-
"eslint-plugin-node": "^
|
|
67
|
-
"eslint-plugin-promise": "^
|
|
68
|
-
"eslint-plugin-security": "^1.
|
|
69
|
-
"eslint-plugin-standard": "^4.
|
|
70
|
-
"husky": "^
|
|
71
|
-
"jest": "^
|
|
72
|
-
"lint-staged": "^
|
|
73
|
-
"lockfile-lint": "^
|
|
74
|
-
"open-cli": "^
|
|
75
|
-
"prettier": "^
|
|
62
|
+
"eslint": "^8.33.0",
|
|
63
|
+
"eslint-config-standard": "^17.0.0",
|
|
64
|
+
"eslint-plugin-import": "^2.27.5",
|
|
65
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
66
|
+
"eslint-plugin-node": "^11.1.0",
|
|
67
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
68
|
+
"eslint-plugin-security": "^1.7.1",
|
|
69
|
+
"eslint-plugin-standard": "^4.1.0",
|
|
70
|
+
"husky": "^8.0.3",
|
|
71
|
+
"jest": "^29.4.1",
|
|
72
|
+
"lint-staged": "^13.1.0",
|
|
73
|
+
"lockfile-lint": "^4.10.0",
|
|
74
|
+
"open-cli": "^7.1.0",
|
|
75
|
+
"prettier": "^2.8.3"
|
|
76
76
|
},
|
|
77
77
|
"jest": {
|
|
78
78
|
"testEnvironment": "node",
|
|
@@ -214,5 +214,8 @@
|
|
|
214
214
|
}
|
|
215
215
|
],
|
|
216
216
|
"@semantic-release/github"
|
|
217
|
-
]
|
|
217
|
+
],
|
|
218
|
+
"peerDependencies": {
|
|
219
|
+
"node-notifier": "^10.0.1"
|
|
220
|
+
}
|
|
218
221
|
}
|
package/saofile.js
CHANGED
|
@@ -8,10 +8,10 @@ jobs:
|
|
|
8
8
|
name: Lint
|
|
9
9
|
runs-on: 'ubuntu-latest'
|
|
10
10
|
steps:
|
|
11
|
-
- uses: actions/checkout@
|
|
12
|
-
- uses: actions/setup-node@
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
- uses: actions/setup-node@v3
|
|
13
13
|
with:
|
|
14
|
-
node-version: '
|
|
14
|
+
node-version: '18'
|
|
15
15
|
- name: install dependencies
|
|
16
16
|
run: <%= npmClientInstall %>
|
|
17
17
|
- name: lint code
|
|
@@ -21,12 +21,12 @@ jobs:
|
|
|
21
21
|
strategy:
|
|
22
22
|
matrix:
|
|
23
23
|
platform: [ubuntu-latest]
|
|
24
|
-
node: ['14', '16']
|
|
24
|
+
node: ['14', '16', '18']
|
|
25
25
|
name: Tests - Node ${{ matrix.node }} (${{ matrix.platform }})
|
|
26
26
|
runs-on: ${{ matrix.platform }}
|
|
27
27
|
steps:
|
|
28
|
-
- uses: actions/checkout@
|
|
29
|
-
- uses: actions/setup-node@
|
|
28
|
+
- uses: actions/checkout@v3
|
|
29
|
+
- uses: actions/setup-node@v3
|
|
30
30
|
with:
|
|
31
31
|
node-version: ${{ matrix.node }}
|
|
32
32
|
- name: install dependencies
|
|
@@ -40,10 +40,10 @@ jobs:
|
|
|
40
40
|
needs: build
|
|
41
41
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
42
42
|
steps:
|
|
43
|
-
- uses: actions/checkout@
|
|
44
|
-
- uses: actions/setup-node@
|
|
43
|
+
- uses: actions/checkout@v3
|
|
44
|
+
- uses: actions/setup-node@v3
|
|
45
45
|
with:
|
|
46
|
-
node-version: '
|
|
46
|
+
node-version: '18'
|
|
47
47
|
- name: install dependencies
|
|
48
48
|
run: <%= npmClientInstall %> --ignore-engines --only=production
|
|
49
49
|
- name: release
|
package/template/gitignore
CHANGED
package/template/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules npx jest --watch",
|
|
26
26
|
"coverage:view": "open-cli coverage/lcov-report/index.html",
|
|
27
27
|
"semantic-release": "npx semantic-release",
|
|
28
|
-
"prepare": "husky install"
|
|
28
|
+
"prepare": "husky install && chmod 755 .husky/*"
|
|
29
29
|
},
|
|
30
30
|
"author": {
|
|
31
31
|
"name": "<%= author %>",
|
|
@@ -46,33 +46,32 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.
|
|
50
|
-
"@babel/eslint-parser": "^7.
|
|
49
|
+
"@babel/core": "^7.20.12",
|
|
50
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
51
51
|
"@babel/plugin-syntax-top-level-await": "^7.14.5",
|
|
52
|
-
"@commitlint/cli": "^
|
|
53
|
-
"@commitlint/config-conventional": "^
|
|
54
|
-
"@semantic-release/changelog": "^6.0.
|
|
55
|
-
"@semantic-release/commit-analyzer": "^9.0.
|
|
56
|
-
"@semantic-release/git": "^10.0.
|
|
57
|
-
"@semantic-release/github": "^8.0.
|
|
58
|
-
"@semantic-release/npm": "^
|
|
59
|
-
"@semantic-release/release-notes-generator": "^10.0.
|
|
60
|
-
"eslint": "^8.0
|
|
61
|
-
"eslint-plugin-jest": "^
|
|
52
|
+
"@commitlint/cli": "^17.4.2",
|
|
53
|
+
"@commitlint/config-conventional": "^17.4.2",
|
|
54
|
+
"@semantic-release/changelog": "^6.0.2",
|
|
55
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
56
|
+
"@semantic-release/git": "^10.0.1",
|
|
57
|
+
"@semantic-release/github": "^8.0.7",
|
|
58
|
+
"@semantic-release/npm": "^9.0.2",
|
|
59
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
60
|
+
"eslint": "^8.33.0",
|
|
61
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
62
62
|
"eslint-plugin-node": "^11.1.0",
|
|
63
|
-
"eslint-plugin-security": "^1.
|
|
63
|
+
"eslint-plugin-security": "^1.7.1",
|
|
64
64
|
"eslint-plugin-standard": "^4.1.0",
|
|
65
|
-
"husky": "^
|
|
66
|
-
"jest": "^
|
|
67
|
-
"lint-staged": "^
|
|
68
|
-
"lockfile-lint": "^4.
|
|
69
|
-
"open-cli": "^7.0
|
|
70
|
-
"prettier": "^2.
|
|
65
|
+
"husky": "^8.0.3",
|
|
66
|
+
"jest": "^29.4.1",
|
|
67
|
+
"lint-staged": "^13.1.0",
|
|
68
|
+
"lockfile-lint": "^4.10.0",
|
|
69
|
+
"open-cli": "^7.1.0",
|
|
70
|
+
"prettier": "^2.8.3"
|
|
71
71
|
},
|
|
72
72
|
"jest": {
|
|
73
73
|
"testEnvironment": "node",
|
|
74
74
|
"verbose": true,
|
|
75
|
-
"notify": true,
|
|
76
75
|
"collectCoverage": true,
|
|
77
76
|
"coverageThreshold": {
|
|
78
77
|
"global": {
|
|
@@ -94,10 +93,20 @@
|
|
|
94
93
|
]
|
|
95
94
|
},
|
|
96
95
|
"lint-staged": {
|
|
97
|
-
"**/*.js": [
|
|
96
|
+
"**/*.{js,json}": [
|
|
98
97
|
"<%= npmClient %> run format"
|
|
99
98
|
]
|
|
100
99
|
},
|
|
100
|
+
"husky": {
|
|
101
|
+
"hooks": {
|
|
102
|
+
"commit-msg": "commitlint --env HUSKY_GIT_PARAMS",
|
|
103
|
+
"pre-commit": "lint-staged",
|
|
104
|
+
"pre-push": "<%= npmClient %> run lint && <%= npmClient %> run test",
|
|
105
|
+
"post-commit": "git status",
|
|
106
|
+
"post-checkout": "git status",
|
|
107
|
+
"post-merge": "<%= npmClient %> install"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
101
110
|
"commitlint": {
|
|
102
111
|
"extends": [
|
|
103
112
|
"@commitlint/config-conventional"
|
|
@@ -115,6 +124,11 @@
|
|
|
115
124
|
"eslintIgnore": [
|
|
116
125
|
"coverage/**"
|
|
117
126
|
],
|
|
127
|
+
"babel": {
|
|
128
|
+
"plugins": [
|
|
129
|
+
"@babel/plugin-syntax-top-level-await"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
118
132
|
"eslintConfig": {
|
|
119
133
|
"plugins": [
|
|
120
134
|
"node",
|