Skip to content

Commit 08fac6d

Browse files
committed
feat: 更新程序
1 parent d70b491 commit 08fac6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5501
-10720
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,50 @@ on:
44
push:
55
branches:
66
- main
7+
78
pull_request:
89
branches:
910
- main
1011

1112
jobs:
1213
lint:
1314
runs-on: ubuntu-latest
14-
1515
steps:
16-
- name: 🔀 Checkout Git Source
17-
uses: actions/checkout@v4
18-
19-
- name: 📦 Install pnpm
20-
uses: pnpm/action-setup@v2
21-
22-
- name: 🚀 Use Node.js lts/*
23-
uses: actions/setup-node@v4
16+
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@v4
18+
with:
19+
run_install: false
20+
- uses: actions/setup-node@v4
2421
with:
2522
node-version: lts/*
23+
cache: pnpm
2624

27-
- name: 📦 Install Dependencies
28-
run: pnpm i
25+
- run: pnpm i -g @antfu/ni
26+
- run: nci
27+
- run: nr lint
28+
- run: nr typecheck
2929

30-
- name: ✅ Lint
31-
run: pnpm lint
30+
test:
31+
runs-on: ${{ matrix.os }}
3232

33-
buildWeb:
34-
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
node: [lts/*]
36+
os: [ubuntu-latest, windows-latest, macos-latest]
37+
fail-fast: false
3538

3639
steps:
37-
- name: 🔀 Checkout Git Source
38-
uses: actions/checkout@v4
39-
40-
- name: 📦 Install pnpm
41-
uses: pnpm/action-setup@v2
42-
43-
- name: 🚀 Use Node.js lts/*
40+
- uses: actions/checkout@v4
41+
- uses: pnpm/action-setup@v4
42+
with:
43+
run_install: false
44+
- name: Set node ${{ matrix.node }}
4445
uses: actions/setup-node@v4
4546
with:
46-
node-version: lts/*
47-
48-
- name: 📦 Install Dependencies
49-
run: pnpm i
50-
51-
- name: 🚧 Set up project
52-
run: pnpm generate
53-
54-
- name: 🚧 Build
55-
run: pnpm build
47+
node-version: ${{ matrix.node }}
48+
cache: pnpm
5649

57-
- name: 💪 Typecheck
58-
run: pnpm typecheck
50+
- run: pnpm i -g @antfu/ni
51+
- run: nci
52+
- run: nr build
53+
- run: nr test

.github/workflows/release.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
permissions:
4+
id-token: write
45
contents: write
56

67
on:
@@ -11,22 +12,24 @@ on:
1112
jobs:
1213
release:
1314
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
node-version: [lts/*]
1815
steps:
19-
- name: 🔀 Checkout Git Source
20-
uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
2117
with:
2218
fetch-depth: 0
23-
24-
- name: 🚀 Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v4
19+
- uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v4
2621
with:
2722
node-version: lts/*
23+
registry-url: https://registry.npmjs.org/
2824

29-
- name: 🔖 Release
30-
run: npx changelogithub
25+
- run: pnpm dlx changelogithub
3126
env:
3227
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28+
29+
# # Uncomment the following lines to publish to npm on CI
30+
#
31+
# - run: pnpm install
32+
# - run: pnpm publish -r --access public
33+
# env:
34+
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
35+
# NPM_CONFIG_PROVENANCE: true

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
node_modules
1+
.cache
2+
.DS_Store
3+
.idea
24
*.log
5+
*.tgz
6+
coverage
37
dist
4-
.output
5-
.nuxt
6-
.env
8+
lib-cov
9+
logs
10+
node_modules
11+
temp
12+
cache
13+
.eslintcache

.npmrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
shamefully-hoist=true
2-
strict-peer-dependencies=false
1+
ignore-workspace-root-check=true
2+
shell-emulator=true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.17.0
1+
v22.14.0

.vscode/extensions.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
{
2-
// Enable the ESlint flat config support
3-
"eslint.experimental.useFlatConfig": true,
4-
52
// Disable the default formatter, use eslint instead
63
"prettier.enable": false,
74
"editor.formatOnSave": false,
85

96
// Auto fix
107
"editor.codeActionsOnSave": {
11-
"source.fixAll": "explicit",
8+
"source.fixAll.eslint": "explicit",
129
"source.organizeImports": "never"
1310
},
1411

1512
// Silent the stylistic rules in you IDE, but still auto fix them
1613
"eslint.rules.customizations": [
1714
{ "rule": "style/*", "severity": "off" },
18-
{ "rule": "format/*", "severity": "off" },
1915
{ "rule": "*-indent", "severity": "off" },
2016
{ "rule": "*-spacing", "severity": "off" },
2117
{ "rule": "*-spaces", "severity": "off" },

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025-PRESENT Dxh.me <https://github.com/dxhuii>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## 内容清单
1+
# cms
22

3-
- 收集一些好用的网站和工具
3+
文档中心
44

5-
## 使用 `vitesse-nuxt3` 搭建
5+
## License
66

7-
- [vitesse-nuxt3](https://github.com/antfu/vitesse-nuxt3)
7+
[MIT](./LICENSE) License © [Dxh.me](https://github.com/dxhuii)

app.vue

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)