Skip to content

Commit 2a88054

Browse files
committed
refactor: 更新构建流程
1 parent 19f1d94 commit 2a88054

File tree

8 files changed

+2057
-243
lines changed

8 files changed

+2057
-243
lines changed

.github/workflows/release-tag.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create Release Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release-tag:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@master
14+
15+
- name: Create Release Tag
16+
id: release_tag
17+
uses: yyx990803/release-tag@master
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
tag_name: ${{ github.ref }}
22+
body: |
23+
更新内容请查看[CHANGELOG](https://github.com/agileago/vue3-oop/blob/master/CHANGELOG.md)。
24+
Please refer to [CHANGELOG](https://github.com/agileago/vue3-oop/blob/master/CHANGELOG.md) for details.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ types
99
coverage
1010
docs/.vitepress/cache
1111
lib
12+
docs/.vitepress/dist

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ pnpm-lock.yaml
88
coverage
99
.github
1010
.DS_Store
11+
docs

docs/.vitepress/theme/theme.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
@use "sass:color";
2+
13
$color: #16a8a7;
24

35
:root {
46
--vp-c-brand-1: #{$color};
5-
--vp-c-brand-2: #{lighten($color, 5%)};
6-
--vp-c-brand-3: #{lighten($color, 10%)};
7+
--vp-c-brand-2: #{color.adjust($color, $lightness: 5%)};
8+
--vp-c-brand-3: #{color.adjust($color, $lightness: 10%)};
79
}

eslint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from '@configurajs/eslint'
22

33
export default defineConfig({
4-
ignores: [],
4+
ignores: ['docs'],
55
rules: {
66
curly: 'off',
77
eqeqeq: 'warn',

package.json

+13-14
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@
5252
"typecheck": "tsc --noEmit",
5353
"lint": "eslint --fix .",
5454
"format": "prettier --write .",
55-
"release": "",
56-
"prepublishOnly": "pnpm run build",
55+
"release": "pnpm build && vr release",
5756
"docs:dev": "vitepress dev docs",
5857
"docs:build": "vitepress build docs",
59-
"docs:serve": "vitepress serve docs",
58+
"docs:preview": "vitepress preview docs",
6059
"test": "vitest",
6160
"postinstall": "simple-git-hooks"
6261
},
@@ -74,23 +73,23 @@
7473
"*.{vue,ts,tsx,js,jsx,less,css}": "prettier --write"
7574
},
7675
"devDependencies": {
76+
"@abraham/reflection": "^0.12.0",
7777
"@commitlint/cli": "^19.8.0",
7878
"@commitlint/config-conventional": "^19.8.0",
79-
"eslint": "^9.23.0",
8079
"@configurajs/eslint": "^0.1.2",
81-
"prettier": "^3.5.3",
8280
"@configurajs/prettier": "^0.1.4",
83-
"simple-git-hooks": "^2.9.0",
84-
"lint-staged": "^14.0.1",
85-
86-
"tslib": "^2.6.2",
87-
"typescript": "^5.8.2",
88-
"vue": "^3.5.13",
89-
"@abraham/reflection": "^0.12.0",
81+
"@varlet/release": "^0.3.3",
9082
"autobind-decorator": "^2.4.0",
83+
"eslint": "^9.23.0",
9184
"injection-js": "^2.4.0",
92-
93-
"tsup": "^8.4.0"
85+
"lint-staged": "^14.0.1",
86+
"prettier": "^3.5.3",
87+
"sass-embedded": "^1.86.1",
88+
"simple-git-hooks": "^2.9.0",
89+
"tsup": "^8.4.0",
90+
"typescript": "^5.8.2",
91+
"vitepress": "^1.4.1",
92+
"vue": "^3.5.13"
9493
},
9594
"peerDependencies": {
9695
"injection-js": "*",

0 commit comments

Comments
 (0)