build(commitlint): add commitlint

This commit is contained in:
Travis Shivers 2020-08-23 19:12:33 -05:00
parent 4316484ae0
commit 9f79d1c6b0
8 changed files with 1018 additions and 8 deletions

1
.commitlintrc.js Normal file
View File

@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };

View File

@ -29,5 +29,7 @@ Dockerfile.web
**/LICENSE
.releaserc
.editorconfig
.commitlintrc.js
.huskyrc
public/config.json

View File

@ -1,19 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
open-pull-requests-limit: 10

13
.github/workflows/commit-lint.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: commit-lint
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-conventional-commit-lint@v1
with:
token: ${{ github.token }}

6
.huskyrc Normal file
View File

@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "npm run lint",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}

990
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,8 @@
"devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@samhammer/vue-cli-plugin-stylelint": "^2.0.0",
"@vue/cli-plugin-babel": "^4.5.4",
"@vue/cli-plugin-eslint": "^4.5.4",
@ -33,6 +35,7 @@
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-vue": "^6.2.2",
"fast-xml-parser": "^3.17.4",
"husky": "^4.2.5",
"last-commit-log": "^3.0.4",
"libjass": "^0.11.0",
"mux.js": "^5.6.4",