feat: added commitlint, semantic pr
This commit is contained in:
5
.github/semantic.yml
vendored
Normal file
5
.github/semantic.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Always validate the PR title AND all the commits
|
||||||
|
titleAndCommits: true
|
||||||
|
# Allows use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
|
||||||
|
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
|
||||||
|
allowMergeCommits: true
|
||||||
@@ -1 +0,0 @@
|
|||||||
export default {}
|
|
||||||
3
commitlint.config.js
Normal file
3
commitlint.config.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ["@commitlint/config-conventional"],
|
||||||
|
}
|
||||||
@@ -2,11 +2,12 @@ module.exports = {
|
|||||||
moduleFileExtensions: ["ts", "js", "json", "vue"],
|
moduleFileExtensions: ["ts", "js", "json", "vue"],
|
||||||
watchman: false,
|
watchman: false,
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
".+\\.(svg)\\?inline$": "<rootDir>/__mocks__/svgMock.js",
|
"^@/(.*)$": "<rootDir>/$1",
|
||||||
"^~/(.*)$": "<rootDir>/$1",
|
"^~/(.*)$": "<rootDir>/$1",
|
||||||
"^~~/(.*)$": "<rootDir>/$1",
|
"^vue$": "vue/dist/vue.common.js",
|
||||||
},
|
},
|
||||||
transform: {
|
transform: {
|
||||||
|
"^.+\\.ts$": "ts-jest",
|
||||||
"^.+\\.js$": "babel-jest",
|
"^.+\\.js$": "babel-jest",
|
||||||
".*\\.(vue)$": "vue-jest",
|
".*\\.(vue)$": "vue-jest",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -356,6 +356,7 @@ export default {
|
|||||||
if (isDev) {
|
if (isDev) {
|
||||||
config.mode = "development"
|
config.mode = "development"
|
||||||
}
|
}
|
||||||
|
|
||||||
config.node = {
|
config.node = {
|
||||||
fs: "empty",
|
fs: "empty",
|
||||||
}
|
}
|
||||||
@@ -366,6 +367,7 @@ export default {
|
|||||||
use: { loader: "worker-loader" },
|
use: { loader: "worker-loader" },
|
||||||
exclude: /(node_modules)/,
|
exclude: /(node_modules)/,
|
||||||
})
|
})
|
||||||
|
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.md$/i,
|
test: /\.md$/i,
|
||||||
use: { loader: "raw-loader" },
|
use: { loader: "raw-loader" },
|
||||||
|
|||||||
1555
package-lock.json
generated
1555
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -32,6 +32,7 @@
|
|||||||
"ace-builds": "^1.4.12",
|
"ace-builds": "^1.4.12",
|
||||||
"acorn": "^8.4.1",
|
"acorn": "^8.4.1",
|
||||||
"acorn-walk": "^8.1.0",
|
"acorn-walk": "^8.1.0",
|
||||||
|
"core-js": "^3.9.1",
|
||||||
"esprima": "^4.0.1",
|
"esprima": "^4.0.1",
|
||||||
"firebase": "^8.6.8",
|
"firebase": "^8.6.8",
|
||||||
"graphql": "^15.5.1",
|
"graphql": "^15.5.1",
|
||||||
@@ -57,6 +58,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.14.6",
|
"@babel/core": "^7.14.6",
|
||||||
"@babel/preset-env": "^7.14.7",
|
"@babel/preset-env": "^7.14.7",
|
||||||
|
"@commitlint/cli": "^12.0.1",
|
||||||
|
"@commitlint/config-conventional": "^12.0.1",
|
||||||
"@nuxt/types": "^2.15.7",
|
"@nuxt/types": "^2.15.7",
|
||||||
"@nuxt/typescript-build": "^2.1.0",
|
"@nuxt/typescript-build": "^2.1.0",
|
||||||
"@nuxtjs/color-mode": "^2.0.10",
|
"@nuxtjs/color-mode": "^2.0.10",
|
||||||
@@ -82,7 +85,7 @@
|
|||||||
"jest-serializer-vue": "^2.0.2",
|
"jest-serializer-vue": "^2.0.2",
|
||||||
"lint-staged": "^11.0.0",
|
"lint-staged": "^11.0.0",
|
||||||
"nuxt-windicss": "^1.1.1",
|
"nuxt-windicss": "^1.1.1",
|
||||||
"prettier": "^2.3.1",
|
"prettier": "^2.3.2",
|
||||||
"pretty-quick": "^3.1.1",
|
"pretty-quick": "^3.1.1",
|
||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
|
|||||||
@@ -14,7 +14,13 @@
|
|||||||
"~/*": ["./*"],
|
"~/*": ["./*"],
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
},
|
},
|
||||||
"types": ["@types/node", "@nuxt/types", "nuxt-i18n", "@nuxtjs/toast", "vue-rx"]
|
"types": [
|
||||||
|
"@types/node",
|
||||||
|
"@nuxt/types",
|
||||||
|
"nuxt-i18n",
|
||||||
|
"@nuxtjs/toast",
|
||||||
|
"vue-rx"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", ".nuxt", "dist"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user