Skip to content

Commit e1faa44

Browse files
committed
ci: update
1 parent b58d2ec commit e1faa44

File tree

6 files changed

+568
-35
lines changed

6 files changed

+568
-35
lines changed

.commitlintrc.js

+1-30
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,3 @@
11
module.exports = {
2-
extents: ['@commitlint/config-conventional'],
3-
rules: {
4-
'body-leading-blank': [1, 'always'],
5-
'footer-leading-blank': [1, 'always'],
6-
'header-max-length': [2, 'always', 72],
7-
'scope-case': [2, 'always', 'lower-case'],
8-
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
9-
'subject-empty': [2, 'never'],
10-
'subject-full-stop': [2, 'never', '.'],
11-
'type-case': [2, 'always', 'lower-case'],
12-
'type-empty': [2, 'never'],
13-
'type-enum': [
14-
2,
15-
'always',
16-
[
17-
'build',
18-
'chore',
19-
'ci',
20-
'docs',
21-
'feat',
22-
'fix',
23-
'improvement',
24-
'perf',
25-
'refactor',
26-
'revert',
27-
'style',
28-
'test',
29-
],
30-
],
31-
},
2+
extends: ['@commitlint/config-conventional'],
323
};
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
pnpm lint-staged
4+
npx --no-install commitlint --edit

.versionrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"header":"# 更新历史 \n\n",
3+
"types": [
4+
{"type": "feat", "section": "✨ Features | 新功能"},
5+
{"type": "fix", "section": "🐛 Bug Fixes | Bug 修复"},
6+
{"type": "perf", "section":"⚡ Performance Improvements | 性能优化"},
7+
{"type": "revert", "section":"⏪ Reverts | 回退"},
8+
{"type": "chore", "section":"📦 Chores | 其他更新"},
9+
{"type": "docs", "section":"📝 Documentation | 文档"},
10+
{"type": "style", "section":"💄 Styles | 风格", "hidden": true},
11+
{"type": "refactor", "section":"♻ Code Refactoring | 代码重构"},
12+
{"type": "test", "section":"✅ Tests | 测试"},
13+
{"type": "build", "section":"👷‍ Build System | 构建"},
14+
{"type": "ci", "section":"🔧 Continuous Integration | CI 配置"}
15+
],
16+
"skip": {
17+
"bump": true,
18+
"changelog": false,
19+
"commit": true,
20+
"tag": true
21+
}
22+
}

CHANGELOG.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# 更新历史
2+
3+
4+
### 0.0.6 (2023-05-14)
5+
6+
7+
### ♻ Code Refactoring | 代码重构
8+
9+
* LazyLoadImage ([ca6b17e](https://github.com/CCherry07/vue-lazy-load-image-component/commit/ca6b17e0c06402b0609b78bf550097f0ede54ac0))
10+
11+
12+
### 🐛 Bug Fixes | Bug 修复
13+
14+
* isIntersectionObserverAvailable ([f6f1dbf](https://github.com/CCherry07/vue-lazy-load-image-component/commit/f6f1dbf07422ff966f9b15b7eb6c228328cae4f8))
15+
* LazyLoadComponent methods ([3dc69a6](https://github.com/CCherry07/vue-lazy-load-image-component/commit/3dc69a6de651f31479b8fec684af61f3522e5e16))
16+
* LazyLoadImage type ([a944b8f](https://github.com/CCherry07/vue-lazy-load-image-component/commit/a944b8f398d4554e84644858700ba550d3de4bd3))
17+
* LazyLoadImageProps style prop ([639b620](https://github.com/CCherry07/vue-lazy-load-image-component/commit/639b62017b5e9e6a05ac506cc2a6c71a914dbe6a))
18+
19+
20+
### ✅ Tests | 测试
21+
22+
* add test ([9f68b05](https://github.com/CCherry07/vue-lazy-load-image-component/commit/9f68b0561f512677f6bde9c52efb8bbd0bd7b2e3))
23+
24+
25+
### 📦 Chores | 其他更新
26+
27+
* add keywords ([5c22821](https://github.com/CCherry07/vue-lazy-load-image-component/commit/5c228210babe3d04ac90108ab732d7383e88ea26))
28+
* del app.tsx ([e15f467](https://github.com/CCherry07/vue-lazy-load-image-component/commit/e15f4676b133d179ea770d3ed9d320bfd32843e3))
29+
* npm ([bbeec94](https://github.com/CCherry07/vue-lazy-load-image-component/commit/bbeec9412b2773c25a8c3532763e1565bed838d1))
30+
* publish 0.0.2 ([87af132](https://github.com/CCherry07/vue-lazy-load-image-component/commit/87af132c0ced21a9d1a75ae4a8efb01bd288152c))
31+
* publish 0.0.2 ([b4768d7](https://github.com/CCherry07/vue-lazy-load-image-component/commit/b4768d7ea31e3c053cf8526014d569b6b71ea443))
32+
33+
34+
### ✨ Features | 新功能
35+
36+
* fix Attributes ([7eab822](https://github.com/CCherry07/vue-lazy-load-image-component/commit/7eab8226716b42466a7105057df5d8ee4592362e))
37+
* add commitlint ([ab6d309](https://github.com/CCherry07/vue-lazy-load-image-component/commit/ab6d309713e113c27709c34f5f65dbfbfc215915))
38+
* add readme ([37c3b34](https://github.com/CCherry07/vue-lazy-load-image-component/commit/37c3b3449e9a26856ef5988f3dd17a70614fd2a0))
39+
* add types ([8cf7523](https://github.com/CCherry07/vue-lazy-load-image-component/commit/8cf7523ee6b500ebd36be80f095506cb67c91f46))
40+
* components ([0b1e0e5](https://github.com/CCherry07/vue-lazy-load-image-component/commit/0b1e0e5e1af9497c24f70559613ec4219ff46dfa))
41+
* refactor placeholder ([c4d2545](https://github.com/CCherry07/vue-lazy-load-image-component/commit/c4d2545fb57b5b131ee61782a8ea4cb4f3ef023f))
42+
* type ([a982924](https://github.com/CCherry07/vue-lazy-load-image-component/commit/a9829244055a4d2730bfb01a3b1d32e88b2c3be7))
43+
* update readme ([661e8d2](https://github.com/CCherry07/vue-lazy-load-image-component/commit/661e8d2578cfd85b1d5d863dc872026e1a29f4ea))
44+
* update readme ([71425bb](https://github.com/CCherry07/vue-lazy-load-image-component/commit/71425bbeeaeabeb6111bea2472739d442f7ccfd4))
45+
* update readme with reference ([d7ff7ee](https://github.com/CCherry07/vue-lazy-load-image-component/commit/d7ff7ee4f2ee773295143d29db884f189bb35db9))

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"test": "vitest",
1616
"prepare": "husky install",
1717
"lint-staged": "lint-staged --allow-empty",
18-
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx "
18+
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
19+
"release": "standard-version"
1920
},
2021
"lint-staged": {
2122
"**/*.{js,jsx,ts,tsx}": "pnpm run lint-staged:js",
@@ -30,7 +31,7 @@
3031
},
3132
"config": {
3233
"commitizen": {
33-
"path": "node_modules/cz-customizable"
34+
"path": "cz-conventional-changelog"
3435
}
3536
},
3637
"keywords": [
@@ -73,11 +74,13 @@
7374
"@vitejs/plugin-vue-jsx": "^3.0.1",
7475
"@vue/babel-plugin-jsx": "^1.1.1",
7576
"commitizen": "^4.3.0",
77+
"commitlint": "^17.6.3",
7678
"cz-conventional-changelog": "^3.3.0",
7779
"eslint-plugin-vue": "^9.12.0",
78-
"husky": "^8.0.0",
80+
"husky": "^8.0.3",
7981
"jest": "^29.5.0",
8082
"jsdom": "^22.0.0",
83+
"standard-version": "^9.5.0",
8184
"vitest": "^0.31.0"
8285
}
8386
}

0 commit comments

Comments
 (0)