Skip to content

Commit 0547d4d

Browse files
committed
v0.0.1
0 parents  commit 0547d4d

File tree

149 files changed

+23395
-0
lines changed

Some content is hidden

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

149 files changed

+23395
-0
lines changed

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
groups:
8+
patch-updates:
9+
patterns:
10+
- "*"
11+
update-types:
12+
- "patch"
13+
minor-updates:
14+
patterns:
15+
- "*"
16+
update-types:
17+
- "minor"
18+
pull-request-branch-name:
19+
separator: "-"
20+
ignore:
21+
- dependency-name: "*"
22+
update-types: ["version-update:semver-major"]

.github/workflows/biome.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Code quality
2+
3+
on:
4+
push:
5+
branches: [ main ] # Adjust branches as needed
6+
pull_request:
7+
branches: [ main ] # Adjust branches as needed
8+
9+
jobs:
10+
quality:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
- name: Setup Biome
16+
uses: biomejs/setup-biome@f382a98e582959e6aaac8e5f8b17b31749018780 # v2.5.0
17+
with:
18+
version: latest
19+
- name: Run Biome
20+
run: biome ci ./src --reporter=github

.github/workflows/build.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build and Check
2+
3+
on:
4+
push:
5+
branches: [ main ] # Adjust branches as needed
6+
pull_request:
7+
branches: [ main ] # Adjust branches as needed
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
check:
18+
strategy:
19+
matrix:
20+
node: [ 22, 23 ]
21+
runs-on: ubuntu-latest
22+
name: Astro Check for Node.js ${{ matrix.node }}
23+
steps:
24+
- name: Setup Node.js
25+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
26+
with:
27+
node-version: ${{ matrix.node }} # Use LTS
28+
29+
- name: Checkout
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
32+
- name: Setup pnpm
33+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
34+
with:
35+
run_install: false # Disable auto-install
36+
37+
- name: Install dependencies
38+
run: pnpm install --frozen-lockfile
39+
40+
- name: Run Astro Check
41+
run: pnpm astro check
42+
43+
build:
44+
strategy:
45+
matrix:
46+
node: [ 22, 23 ]
47+
runs-on: ubuntu-latest
48+
name: Astro Build for Node.js ${{ matrix.node }} # Corrected job name
49+
steps:
50+
- name: Setup Node.js
51+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
52+
with:
53+
node-version: ${{ matrix.node }}
54+
55+
- name: Checkout
56+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57+
58+
- name: Setup pnpm
59+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
60+
with:
61+
run_install: false # Disable auto-install
62+
63+
- name: Install dependencies
64+
run: pnpm install --frozen-lockfile
65+
66+
- name: Run Astro Build
67+
run: pnpm astro build

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to Blog Branch
2+
3+
on:
4+
# 每次推送到 `main` 分支时触发这个"工作流程"
5+
# 如果你使用了别的分支名,请按需将 `main` 替换成你的分支名
6+
push:
7+
branches: [ main ]
8+
# 允许你在 GitHub 上的 Actions 标签中手动触发此"工作流程"
9+
workflow_dispatch:
10+
11+
# 需要写入权限来推送到blog分支
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
build-and-deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout your repository using git
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Setup pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
version: 9.14.4
31+
run_install: false
32+
33+
- name: Install dependencies
34+
run: pnpm install --no-frozen-lockfile
35+
36+
- name: Build site
37+
run: pnpm run build
38+
39+
- name: Deploy to blog branch
40+
uses: JamesIves/github-pages-deploy-action@v4
41+
with:
42+
branch: blog # 部署到blog分支
43+
folder: dist # Astro默认构建输出目录
44+
clean: true # 清理目标分支中的旧文件

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
.vercel
24+
25+
package-lock.json
26+
bun.lockb
27+
yarn.lock

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
manage-package-manager-versions = true

.vercelignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
build
3+
dist
4+
.git
5+
.trae
6+
.log

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["biomejs.biome", "astro-build.astro-vscode"]
3+
}

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "biomejs.biome",
4+
"[javascript]": {
5+
"editor.defaultFormatter": "biomejs.biome"
6+
},
7+
"[javascriptreact]": {
8+
"editor.defaultFormatter": "biomejs.biome"
9+
},
10+
"[typescript]": {
11+
"editor.defaultFormatter": "biomejs.biome"
12+
},
13+
"[typescriptreact]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"editor.codeActionsOnSave": {
17+
"source.fixAll": "explicit",
18+
"quickfix.biome": "always",
19+
"source.organizeImports.biome": "always"
20+
},
21+
"frontMatter.dashboard.openOnStart": false
22+
}

CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Contributing
3+
4+
Thank you for your interest in contributing!
5+
6+
## Before You Start
7+
8+
If you plan to make major changes (especially new features or design changes), please open an issue or discussion before starting work. This helps ensure your effort aligns with the project's direction.
9+
10+
## Submitting Code
11+
12+
Please keep each pull request focused on a single purpose. Avoid mixing unrelated changes in one PR, as this can make reviewing and merging code more difficult.
13+
14+
Please use the [Conventional Commits](https://www.conventionalcommits.org/) format for your commit messages whenever possible. This keeps our history clear and consistent.
15+
16+
Before submitting code, please run the appropriate commands to check for errors and format your code.
17+
18+
```bash
19+
pnpm check
20+
pnpm format
21+
```

0 commit comments

Comments
 (0)