Skip to content

Commit cfa4dd1

Browse files
authored
Merge pull request #1 from echoVic/refactor/merge-packages
Refactor/merge packages
2 parents f865819 + 9d5681e commit cfa4dd1

385 files changed

Lines changed: 79795 additions & 19770 deletions

File tree

Some content is hidden

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

.blade/settings.local.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"permissions": {}
3+
}

.claude/agents

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 167009899925732840059cdb2eca2c2c5aacd7f7

.claude/settings.local.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Read(//usr/local/etc/**)",
5+
"Bash(unset:*)",
6+
"WebFetch(domain:github.com)",
7+
"WebSearch",
8+
"mcp__github__get_file_contents",
9+
"Bash(npm run type-check:*)",
10+
"Bash(npm test)",
11+
"Bash(npx vitest:*)",
12+
"Bash(npm run build:*)",
13+
"Bash(npm run lint:*)",
14+
"Bash(npx eslint:*)",
15+
"mcp__sequential-thinking__sequentialthinking",
16+
"Bash(npm run start:*)",
17+
"Bash(find:*)",
18+
"Bash(curl:*)",
19+
"Bash(bash)",
20+
"Bash(node:*)",
21+
"Bash(pnpm add:*)",
22+
"Bash(npx:*)",
23+
"Bash(xargs sed:*)"
24+
],
25+
"deny": [],
26+
"ask": [],
27+
"additionalDirectories": [
28+
"/Users/bytedance"
29+
]
30+
}
31+
}

.eslintignore

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

.eslintrc.cjs

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

.github/workflows/ci.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Blade Code CI/CD Pipeline
2+
name: CI/CD
3+
4+
on:
5+
push:
6+
branches: [main, develop]
7+
pull_request:
8+
branches: [main, develop]
9+
10+
jobs:
11+
test:
12+
name: Test Suite (${{ matrix.node-version }})
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [18.x, 20.x]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'pnpm'
27+
28+
- name: Setup pnpm
29+
uses: pnpm/action-setup@v4
30+
with:
31+
version: 8
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
- name: Run tests
37+
run: pnpm test
38+
39+
- name: Run type check
40+
run: pnpm run type-check
41+
42+
- name: Build project
43+
run: pnpm run build
44+
45+
- name: Test build
46+
run: pnpm run start -- --help
47+
48+
code-quality:
49+
name: Code Quality
50+
runs-on: ubuntu-latest
51+
52+
steps:
53+
- name: Checkout code
54+
uses: actions/checkout@v4
55+
56+
- name: Setup Node.js
57+
uses: actions/setup-node@v4
58+
with:
59+
node-version: '20.x'
60+
cache: 'pnpm'
61+
62+
- name: Setup pnpm
63+
uses: pnpm/action-setup@v4
64+
with:
65+
version: 8
66+
67+
- name: Install dependencies
68+
run: pnpm install
69+
70+
- name: Run linter and formatter
71+
run: pnpm run check
72+
continue-on-error: true # 暂时允许失败,避免阻塞 MR
73+
74+
cross-platform:
75+
name: Cross Platform (${{ matrix.os }})
76+
runs-on: ${{ matrix.os }}
77+
strategy:
78+
matrix:
79+
os: [ubuntu-latest, windows-latest, macos-latest]
80+
node-version: [20.x]
81+
82+
steps:
83+
- name: Checkout code
84+
uses: actions/checkout@v4
85+
86+
- name: Setup Node.js
87+
uses: actions/setup-node@v4
88+
with:
89+
node-version: ${{ matrix.node-version }}
90+
cache: 'pnpm'
91+
92+
- name: Setup pnpm
93+
uses: pnpm/action-setup@v4
94+
with:
95+
version: 8
96+
97+
- name: Install dependencies
98+
run: pnpm install
99+
100+
- name: Build project
101+
run: pnpm run build
102+
103+
- name: Test CLI basics
104+
run: pnpm run start -- --help
105+
106+
env:
107+
CI: true
108+
NODE_ENV: test

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 依赖目录
22
node_modules/
33
dist/
4+
bundle/
45

56
# pnpm 相关文件
67
.pnpm/
@@ -46,9 +47,13 @@ config.env
4647

4748
# 构建输出
4849
build/
50+
bin/
4951
coverage/
5052
.nyc_output/
5153

54+
# TypeScript 构建信息
55+
*.tsbuildinfo
56+
5257
# 临时文件
5358
.tmp/
5459
*.tmp
@@ -61,4 +66,4 @@ blade-context/
6166

6267
# 其他
6368
.cache/
64-
.parcel-cache/
69+
.parcel-cache/

.prettierignore

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

.prettierrc

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

.vscode/extensions.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"recommendations": [
3-
"esbenp.prettier-vscode",
4-
"dbaeumer.vscode-eslint",
3+
"biomejs.biome",
54
"bradlc.vscode-tailwindcss",
65
"ms-vscode.vscode-typescript-next"
76
]

0 commit comments

Comments
 (0)