Skip to content

Commit

Permalink
fix: updated template
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamtyagi02 authored Jul 6, 2021
1 parent f1b544d commit c19838f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
6 changes: 6 additions & 0 deletions template/.audit-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"moderate": true,
"advisories": [],
"whitelist": [],
"registry": "https://registry.npmjs.org"
}
6 changes: 3 additions & 3 deletions template/.github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: '14.x'

steps:
- name: Check out the code
uses: actions/checkout@v1
uses: actions/checkout@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 2 additions & 2 deletions template/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 14

Expand Down
6 changes: 5 additions & 1 deletion template/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
module.exports = { extends: ['@commitlint/config-angular'] }
module.exports = {extends: ['@commitlint/config-angular'],
rules: {
'type-enum': [2, 'always', ['build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'chore']]
}
}
15 changes: 7 additions & 8 deletions template/package
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
},
"scripts": {
"coverage": "opener coverage/lcov-report/index.html",
"lint:audit": "npm audit",
"lint:audit": "npx audit[email protected] --config .audit-ci.json",
"lint:deps": "npx updated --ignore=husky",
"lint:ec": "editorconfig-checker",
"lint:js": "telus-standard --verbose",
"lint:js": "npx @telus/telus-standard --verbose",
"lint:md": "npx remark-cli --quiet --frail .",
"lint": "npm-run-all -p -c -l lint:*",
"fix:js": "npm run lint:js -- --fix",
Expand All @@ -38,12 +38,11 @@
},
"devDependencies": {
"tap": "^15.0.6",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-angular": "^12.1.1",
"@telus/prettier-config": "^2.0.0",
"@telus/remark-config": "^2.0.0",
"@telus/semantic-release-config": "^2.0.0",
"@telus/telus-standard": "^3.0.0",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-angular": "^12.1.4",
"@telus/prettier-config": "^3.0.1",
"@telus/remark-config": "^2.0.1",
"@telus/semantic-release-config": "^2.0.1",
"editorconfig-checker": "^4.0.2",
"husky": "^4.3.8",
"npm-run-all": "^4.1.5"
Expand Down

0 comments on commit c19838f

Please sign in to comment.