Skip to content

Commit 90185e2

Browse files
committed
style(login): test commit login
1 parent 76cd832 commit 90185e2

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

commitlint.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* @Descripttion:
3+
* @version:
4+
* @Author: wenlan
5+
* @Date: 2022-01-15 15:12:21
6+
* @LastEditors: wenlan
7+
* @LastEditTime: 2022-01-15 15:12:23
8+
*/
9+
module.exports = { extends: ['@commitlint/config-conventional'] }

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dev": "vite",
2323
"build": "vue-tsc --noEmit && vite build",
2424
"preview": "vite preview",
25+
"commit":"npx cz",
2526
"lint": "eslint \"src/**/*\" --fix",
2627
"prettier": "prettier --write .",
2728
"prepare": "husky install"

src/main.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
* @Author: wenlan
55
* @Date: 2022-01-13 15:26:43
66
* @LastEditors: wenlan
7-
* @LastEditTime: 2022-01-15 14:44:44
7+
* @LastEditTime: 2022-01-15 15:19:26
88
*/
99
import { createApp } from 'vue'
1010

11-
import App from './App.vue'
11+
import App from './App.vue';
12+
13+
14+
15+
1216

1317
createApp(App).mount('#app')

0 commit comments

Comments
 (0)