feat: added commitlint, semantic pr

This commit is contained in:
liyasthomas 2021-06-28 00:24:16 +05:30
parent 43b7e94974
commit a2354b5e9e
8 changed files with 1565 additions and 21 deletions

5
.github/semantic.yml vendored Normal file
View 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

View File

@ -1 +0,0 @@
export default {}

3
commitlint.config.js Normal file
View File

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

View File

@ -2,11 +2,12 @@ module.exports = {
moduleFileExtensions: ["ts", "js", "json", "vue"],
watchman: false,
moduleNameMapper: {
".+\\.(svg)\\?inline$": "<rootDir>/__mocks__/svgMock.js",
"^@/(.*)$": "<rootDir>/$1",
"^~/(.*)$": "<rootDir>/$1",
"^~~/(.*)$": "<rootDir>/$1",
"^vue$": "vue/dist/vue.common.js",
},
transform: {
"^.+\\.ts$": "ts-jest",
"^.+\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest",
},

View File

@ -356,6 +356,7 @@ export default {
if (isDev) {
config.mode = "development"
}
config.node = {
fs: "empty",
}
@ -366,6 +367,7 @@ export default {
use: { loader: "worker-loader" },
exclude: /(node_modules)/,
})
config.module.rules.push({
test: /\.md$/i,
use: { loader: "raw-loader" },

1555
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,6 +32,7 @@
"ace-builds": "^1.4.12",
"acorn": "^8.4.1",
"acorn-walk": "^8.1.0",
"core-js": "^3.9.1",
"esprima": "^4.0.1",
"firebase": "^8.6.8",
"graphql": "^15.5.1",
@ -57,6 +58,8 @@
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@nuxt/types": "^2.15.7",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/color-mode": "^2.0.10",
@ -82,7 +85,7 @@
"jest-serializer-vue": "^2.0.2",
"lint-staged": "^11.0.0",
"nuxt-windicss": "^1.1.1",
"prettier": "^2.3.1",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"raw-loader": "^4.0.2",
"sass": "^1.35.1",

View File

@ -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"]
}