@@ -1104,6 +1104,115 @@ Generated by [AVA](https://avajs.dev).
1104
1104
}␊
1105
1105
`
1106
1106
1107
+ ## verify linter: Commitlint
1108
+
1109
+ > Generated files
1110
+
1111
+ [
1112
+ '.editorconfig',
1113
+ '.gitignore',
1114
+ 'README.md',
1115
+ 'assets/README.md',
1116
+ 'commitlint.config.js',
1117
+ 'components/Logo.vue',
1118
+ 'components/README.md',
1119
+ 'layouts/README.md',
1120
+ 'layouts/default.vue',
1121
+ 'middleware/README.md',
1122
+ 'nuxt.config.js',
1123
+ 'package.json',
1124
+ 'pages/README.md',
1125
+ 'pages/index.vue',
1126
+ 'plugins/README.md',
1127
+ 'static/README.md',
1128
+ 'static/favicon.ico',
1129
+ 'store/README.md',
1130
+ ]
1131
+
1132
+ > package.json
1133
+
1134
+ {
1135
+ dependencies: {
1136
+ 'core-js': '^3.6.5',
1137
+ nuxt: '^2.14.0',
1138
+ },
1139
+ devDependencies: {
1140
+ '@commitlint/cli': '^9.1.2',
1141
+ '@commitlint/config-conventional': '^9.1.2',
1142
+ },
1143
+ private: true,
1144
+ scripts: {
1145
+ build: 'nuxt build',
1146
+ dev: 'nuxt',
1147
+ generate: 'nuxt generate',
1148
+ start: 'nuxt start',
1149
+ },
1150
+ }
1151
+
1152
+ > Generated nuxt.config.js
1153
+
1154
+ `␊
1155
+ export default {␊
1156
+ /*␊
1157
+ ** Nuxt rendering mode␊
1158
+ ** See https://nuxtjs.org/api/configuration-mode␊
1159
+ */␊
1160
+ mode: 'universal',␊
1161
+ /*␊
1162
+ ** Nuxt target␊
1163
+ ** See https://nuxtjs.org/api/configuration-target␊
1164
+ */␊
1165
+ target: 'server',␊
1166
+ /*␊
1167
+ ** Headers of the page␊
1168
+ ** See https://nuxtjs.org/api/configuration-head␊
1169
+ */␊
1170
+ head: {␊
1171
+ title: process.env.npm_package_name || '',␊
1172
+ meta: [␊
1173
+ { charset: 'utf-8' },␊
1174
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' },␊
1175
+ { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }␊
1176
+ ],␊
1177
+ link: [␊
1178
+ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }␊
1179
+ ]␊
1180
+ },␊
1181
+ /*␊
1182
+ ** Global CSS␊
1183
+ */␊
1184
+ css: [␊
1185
+ ],␊
1186
+ /*␊
1187
+ ** Plugins to load before mounting the App␊
1188
+ ** https://nuxtjs.org/guide/plugins␊
1189
+ */␊
1190
+ plugins: [␊
1191
+ ],␊
1192
+ /*␊
1193
+ ** Auto import components␊
1194
+ ** See https://nuxtjs.org/api/configuration-components␊
1195
+ */␊
1196
+ components: true,␊
1197
+ /*␊
1198
+ ** Nuxt.js dev-modules␊
1199
+ */␊
1200
+ buildModules: [␊
1201
+ ],␊
1202
+ /*␊
1203
+ ** Nuxt.js modules␊
1204
+ */␊
1205
+ modules: [␊
1206
+ ],␊
1207
+ /*␊
1208
+ ** Build configuration␊
1209
+ ** See https://nuxtjs.org/api/configuration-build/␊
1210
+ */␊
1211
+ build: {␊
1212
+ }␊
1213
+ }␊
1214
+ `
1215
+
1107
1216
## verify linter: ESLint
1108
1217
1109
1218
> Generated files
@@ -1220,7 +1329,7 @@ Generated by [AVA](https://avajs.dev).
1220
1329
}␊
1221
1330
`
1222
1331
1223
- ## verify linter: ESLint, Prettier, Lint staged files, StyleLint
1332
+ ## verify linter: ESLint, Prettier, Lint staged files, StyleLint, Commitlint
1224
1333
1225
1334
> Generated files
1226
1335
@@ -1231,6 +1340,7 @@ Generated by [AVA](https://avajs.dev).
1231
1340
'.prettierrc',
1232
1341
'README.md',
1233
1342
'assets/README.md',
1343
+ 'commitlint.config.js',
1234
1344
'components/Logo.vue',
1235
1345
'components/README.md',
1236
1346
'layouts/README.md',
@@ -1255,6 +1365,8 @@ Generated by [AVA](https://avajs.dev).
1255
1365
nuxt: '^2.14.0',
1256
1366
},
1257
1367
devDependencies: {
1368
+ '@commitlint/cli': '^9.1.2',
1369
+ '@commitlint/config-conventional': '^9.1.2',
1258
1370
'@nuxtjs/eslint-config': '^3.1.0',
1259
1371
'@nuxtjs/eslint-module': '^2.0.0',
1260
1372
'@nuxtjs/stylelint-module': '^4.0.0',
@@ -1272,6 +1384,7 @@ Generated by [AVA](https://avajs.dev).
1272
1384
},
1273
1385
husky: {
1274
1386
hooks: {
1387
+ 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
1275
1388
'pre-commit': 'lint-staged',
1276
1389
},
1277
1390
},
0 commit comments