Skip to content

Commit c19838f

Browse files
fix: updated template
1 parent f1b544d commit c19838f

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

template/.audit-ci.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"moderate": true,
3+
"advisories": [],
4+
"whitelist": [],
5+
"registry": "https://registry.npmjs.org"
6+
}

template/.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [12.x, 14.x]
11+
node-version: '14.x'
1212

1313
steps:
1414
- name: Check out the code
15-
uses: actions/checkout@v1
15+
uses: actions/checkout@v2
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818

1919
- name: Setup node
20-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323

template/.github/workflows/publish.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v1
15+
uses: actions/checkout@v2
1616

1717
- name: Setup node
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v2
1919
with:
2020
node-version: 14
2121

template/commitlint.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
module.exports = { extends: ['@commitlint/config-angular'] }
1+
module.exports = {extends: ['@commitlint/config-angular'],
2+
rules: {
3+
'type-enum': [2, 'always', ['build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'chore']]
4+
}
5+
}

template/package

+7-8
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
},
2323
"scripts": {
2424
"coverage": "opener coverage/lcov-report/index.html",
25-
"lint:audit": "npm audit",
25+
"lint:audit": "npx audit[email protected] --config .audit-ci.json",
2626
"lint:deps": "npx updated --ignore=husky",
2727
"lint:ec": "editorconfig-checker",
28-
"lint:js": "telus-standard --verbose",
28+
"lint:js": "npx @telus/telus-standard --verbose",
2929
"lint:md": "npx remark-cli --quiet --frail .",
3030
"lint": "npm-run-all -p -c -l lint:*",
3131
"fix:js": "npm run lint:js -- --fix",
@@ -38,12 +38,11 @@
3838
},
3939
"devDependencies": {
4040
"tap": "^15.0.6",
41-
"@commitlint/cli": "^12.1.1",
42-
"@commitlint/config-angular": "^12.1.1",
43-
"@telus/prettier-config": "^2.0.0",
44-
"@telus/remark-config": "^2.0.0",
45-
"@telus/semantic-release-config": "^2.0.0",
46-
"@telus/telus-standard": "^3.0.0",
41+
"@commitlint/cli": "^12.1.4",
42+
"@commitlint/config-angular": "^12.1.4",
43+
"@telus/prettier-config": "^3.0.1",
44+
"@telus/remark-config": "^2.0.1",
45+
"@telus/semantic-release-config": "^2.0.1",
4746
"editorconfig-checker": "^4.0.2",
4847
"husky": "^4.3.8",
4948
"npm-run-all": "^4.1.5"

0 commit comments

Comments
 (0)