chore: general improvements of config files
This commit is contained in:
parent
b61ddd1872
commit
7ccdb8f9a0
1
.commitlintrc.json
Normal file
1
.commitlintrc.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ "extends": ["@commitlint/config-conventional"] }
|
1
.github/ISSUE_TEMPLATE/BUG.md
vendored
1
.github/ISSUE_TEMPLATE/BUG.md
vendored
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: '🐛 Bug Report'
|
name: '🐛 Bug Report'
|
||||||
about: 'Report an unexpected problem or unintended behavior.'
|
about: 'Report an unexpected problem or unintended behavior.'
|
||||||
|
title: '[Bug]'
|
||||||
labels: 'bug'
|
labels: 'bug'
|
||||||
---
|
---
|
||||||
|
|
||||||
|
14
.github/ISSUE_TEMPLATE/DOCUMENTATION.md
vendored
14
.github/ISSUE_TEMPLATE/DOCUMENTATION.md
vendored
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: '📜 Documentation'
|
name: '📜 Documentation'
|
||||||
about: 'Correct spelling errors, improvements or additions to documentation files (README, CONTRIBUTING...).'
|
about: 'Correct spelling errors, improvements or additions to documentation files (README, CONTRIBUTING...).'
|
||||||
|
title: '[Documentation]'
|
||||||
labels: 'documentation'
|
labels: 'documentation'
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -10,11 +11,12 @@ Please make sure your issue has not already been fixed.
|
|||||||
Please place an x (no spaces - [x]) in all [ ] that apply.
|
Please place an x (no spaces - [x]) in all [ ] that apply.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
### Documentation :
|
## Documentation
|
||||||
|
|
||||||
- [ ] Is Missing
|
<!-- Please uncomment the type of documentation problem this issue address -->
|
||||||
- [ ] Is Confusing
|
|
||||||
- [ ] Has Typo errors
|
|
||||||
- [ ] Not Sure?
|
|
||||||
|
|
||||||
### Proposal
|
<!-- Documentation is Missing -->
|
||||||
|
<!-- Documentation is Confusing -->
|
||||||
|
<!-- Documentation has Typo errors -->
|
||||||
|
|
||||||
|
## Proposal
|
||||||
|
7
.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
vendored
7
.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
vendored
@ -1,19 +1,20 @@
|
|||||||
---
|
---
|
||||||
name: '✨ Feature Request'
|
name: '✨ Feature Request'
|
||||||
about: 'Suggest a new feature idea.'
|
about: 'Suggest a new feature idea.'
|
||||||
|
title: '[Feature]'
|
||||||
labels: 'feature request'
|
labels: 'feature request'
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- Please make sure your issue has not already been fixed. -->
|
<!-- Please make sure your issue has not already been fixed. -->
|
||||||
|
|
||||||
### Description
|
## Description
|
||||||
|
|
||||||
<!-- A clear and concise description of the problem or missing capability... -->
|
<!-- A clear and concise description of the problem or missing capability... -->
|
||||||
|
|
||||||
### Describe the solution you'd like
|
## Describe the solution you'd like
|
||||||
|
|
||||||
<!-- If you have a solution in mind, please describe it. -->
|
<!-- If you have a solution in mind, please describe it. -->
|
||||||
|
|
||||||
### Describe alternatives you've considered
|
## Describe alternatives you've considered
|
||||||
|
|
||||||
<!-- Have you considered any alternative solutions or workarounds? -->
|
<!-- Have you considered any alternative solutions or workarounds? -->
|
||||||
|
17
.github/ISSUE_TEMPLATE/IMPROVEMENT.md
vendored
17
.github/ISSUE_TEMPLATE/IMPROVEMENT.md
vendored
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: '🔧 Improvement'
|
name: '🔧 Improvement'
|
||||||
about: 'Improve structure/format/performance/refactor/tests of the code.'
|
about: 'Improve structure/format/performance/refactor/tests of the code.'
|
||||||
|
title: '[Improvement]'
|
||||||
labels: 'improvement'
|
labels: 'improvement'
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -10,12 +11,14 @@ Please make sure your issue has not already been fixed.
|
|||||||
Please place an x (no spaces - [x]) in all [ ] that apply.
|
Please place an x (no spaces - [x]) in all [ ] that apply.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
### Type of Improvement :
|
## Type of Improvement
|
||||||
|
|
||||||
- [ ] Files and Folders Structure
|
<!-- Please uncomment the type of improvements this issue address -->
|
||||||
- [ ] Performance
|
|
||||||
- [ ] Refactoring code
|
|
||||||
- [ ] Tests
|
|
||||||
- [ ] Not Sure?
|
|
||||||
|
|
||||||
### Proposal
|
<!-- Files and Folders Structure -->
|
||||||
|
<!-- Performance -->
|
||||||
|
<!-- Refactoring code -->
|
||||||
|
<!-- Tests -->
|
||||||
|
<!-- Not Sure? -->
|
||||||
|
|
||||||
|
## Proposal
|
||||||
|
1
.github/ISSUE_TEMPLATE/QUESTION.md
vendored
1
.github/ISSUE_TEMPLATE/QUESTION.md
vendored
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: '🙋 Question'
|
name: '🙋 Question'
|
||||||
about: 'Further information is requested.'
|
about: 'Further information is requested.'
|
||||||
|
title: '[Question]'
|
||||||
labels: 'question'
|
labels: 'question'
|
||||||
---
|
---
|
||||||
|
|
||||||
|
17
.github/PULL_REQUEST_TEMPLATE.md
vendored
17
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -9,19 +9,8 @@ Please place an x (no spaces - [x]) in all [ ] that apply.
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
### What type of change does this PR introduce?
|
## What changes this PR introduce?
|
||||||
|
|
||||||
- [ ] Bugfix
|
## List any relevant issue numbers
|
||||||
- [ ] Feature
|
|
||||||
- [ ] Refactor
|
|
||||||
- [ ] Documentation
|
|
||||||
- [ ] Not Sure?
|
|
||||||
|
|
||||||
### Does this PR introduce breaking changes?
|
## Is there anything you'd like reviewers to focus on?
|
||||||
|
|
||||||
- [ ] Yes
|
|
||||||
- [ ] No
|
|
||||||
|
|
||||||
### List any relevant issue numbers:
|
|
||||||
|
|
||||||
### Description:
|
|
||||||
|
2
.github/workflows/commitlint.yml
vendored
2
.github/workflows/commitlint.yml
vendored
@ -12,7 +12,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
commitlint:
|
commitlint:
|
||||||
if: ${{ (github.event_name == 'push') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER' || github.event.review.author_association == 'OWNER') && !github.event.pull_request.draft && github.event.pull_request.state == 'open') }}
|
if: ${{ (github.event_name == 'push') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER' || github.event.review.author_association == 'OWNER') && !github.event.pull_request.draft && github.event.pull_request.state == 'open') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v2'
|
- uses: 'actions/checkout@v2'
|
||||||
with:
|
with:
|
||||||
|
8
.github/workflows/nodejs.yml
vendored
8
.github/workflows/nodejs.yml
vendored
@ -12,7 +12,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
ci_app:
|
ci_app:
|
||||||
if: ${{ (github.event_name == 'push') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER' || github.event.review.author_association == 'OWNER') && !github.event.pull_request.draft && github.event.pull_request.state == 'open') }}
|
if: ${{ (github.event_name == 'push') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER' || github.event.review.author_association == 'OWNER') && !github.event.pull_request.draft && github.event.pull_request.state == 'open') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: 'ubuntu-latest'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [14.x]
|
node-version: [14.x]
|
||||||
@ -27,8 +27,7 @@ jobs:
|
|||||||
- name: 'Cache dependencies'
|
- name: 'Cache dependencies'
|
||||||
uses: 'actions/cache@v2.1.4'
|
uses: 'actions/cache@v2.1.4'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: '**/node_modules'
|
||||||
**/node_modules
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
|
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
|
||||||
|
|
||||||
- name: 'Install dependencies'
|
- name: 'Install dependencies'
|
||||||
@ -37,6 +36,9 @@ jobs:
|
|||||||
- name: 'Lint'
|
- name: 'Lint'
|
||||||
run: 'npm run lint'
|
run: 'npm run lint'
|
||||||
|
|
||||||
|
- name: 'MarkdownLint'
|
||||||
|
run: 'npm run markdownlint'
|
||||||
|
|
||||||
- name: 'Build'
|
- name: 'Build'
|
||||||
run: 'npm run build'
|
run: 'npm run build'
|
||||||
|
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npm run lint
|
npm run lint
|
||||||
|
npm run markdownlint
|
||||||
|
7
.markdownlint.json
Normal file
7
.markdownlint.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"default": true,
|
||||||
|
"MD013": false,
|
||||||
|
"MD024": false,
|
||||||
|
"MD033": false,
|
||||||
|
"MD041": false
|
||||||
|
}
|
2
.yarnrc
2
.yarnrc
@ -1,2 +1,2 @@
|
|||||||
install.no-lockfile true
|
--install.no-lockfile true
|
||||||
save-exact true
|
save-exact true
|
||||||
|
@ -1 +0,0 @@
|
|||||||
module.exports = { extends: ['@commitlint/config-conventional'] }
|
|
12
package.json
12
package.json
@ -27,7 +27,9 @@
|
|||||||
"homepage": "https://github.com/Thream/socketio-jwt#readme",
|
"homepage": "https://github.com/Thream/socketio-jwt#readme",
|
||||||
"release-it": {
|
"release-it": {
|
||||||
"git": {
|
"git": {
|
||||||
"commitMessage": "chore(release): v${version}"
|
"commit": false,
|
||||||
|
"push": false,
|
||||||
|
"tag": false
|
||||||
},
|
},
|
||||||
"github": {
|
"github": {
|
||||||
"release": false
|
"release": false
|
||||||
@ -38,6 +40,8 @@
|
|||||||
"hooks": {
|
"hooks": {
|
||||||
"before:init": [
|
"before:init": [
|
||||||
"npm run lint",
|
"npm run lint",
|
||||||
|
"npm run markdownlint",
|
||||||
|
"npm run build",
|
||||||
"npm run test"
|
"npm run test"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -66,6 +70,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf ./build && tsc",
|
"build": "rimraf ./build && tsc",
|
||||||
|
"markdownlint": "markdownlint '**/*.md' --ignore node_modules",
|
||||||
"lint": "ts-standard | snazzy",
|
"lint": "ts-standard | snazzy",
|
||||||
"format": "ts-standard --fix | snazzy",
|
"format": "ts-standard --fix | snazzy",
|
||||||
"release": "release-it",
|
"release": "release-it",
|
||||||
@ -89,14 +94,15 @@
|
|||||||
"@types/express": "4.17.11",
|
"@types/express": "4.17.11",
|
||||||
"@types/jest": "26.0.20",
|
"@types/jest": "26.0.20",
|
||||||
"@types/jsonwebtoken": "8.5.0",
|
"@types/jsonwebtoken": "8.5.0",
|
||||||
"@types/node": "14.14.26",
|
"@types/node": "14.14.27",
|
||||||
"@types/server-destroy": "1.0.1",
|
"@types/server-destroy": "1.0.1",
|
||||||
"axios": "0.21.1",
|
"axios": "0.21.1",
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"husky": "5.0.9",
|
"husky": "5.0.9",
|
||||||
"jest": "26.6.3",
|
"jest": "26.6.3",
|
||||||
|
"markdownlint-cli": "0.26.0",
|
||||||
"pinst": "2.1.4",
|
"pinst": "2.1.4",
|
||||||
"release-it": "14.3.0",
|
"release-it": "14.4.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"server-destroy": "1.0.1",
|
"server-destroy": "1.0.1",
|
||||||
"snazzy": "9.0.0",
|
"snazzy": "9.0.0",
|
||||||
|
Reference in New Issue
Block a user