Skip to content

Commit

Permalink
feat: added commitlint, semantic pr
Browse files Browse the repository at this point in the history
  • Loading branch information
liyasthomas committed Jun 27, 2021
1 parent 43b7e94 commit a2354b5
Show file tree
Hide file tree
Showing 8 changed files with 1,565 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -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 change: 0 additions & 1 deletion __mocks__/svgMock.js

This file was deleted.

3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
}
5 changes: 3 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 2 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ export default {
if (isDev) {
config.mode = "development"
}

config.node = {
fs: "empty",
}
Expand All @@ -366,6 +367,7 @@ export default {
use: { loader: "worker-loader" },
exclude: /(node_modules)/,
})

config.module.rules.push({
test: /\.md$/i,
use: { loader: "raw-loader" },
Expand Down
Loading

0 comments on commit a2354b5

Please sign in to comment.