-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
126 lines (106 loc) · 2.05 KB
/
.gitignore
File metadata and controls
126 lines (106 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# ========== Rust 编译产出 ==========
# Cargo 构建输出
**/target/
**/Cargo.lock
**/debug/
**/release/
# ========== Anchor 特定文件 ==========
# Anchor 本地测试和部署缓存
.anchor/
# 本地测试验证器数据
test-ledger/
# 程序密钥对(通常不提交)
target/deploy/
# Anchor 本地程序 ID 缓存
target/idl/
# ========== 操作系统生成文件 ==========
# macOS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Windows
Thumbs.db
Desktop.ini
$RECYCLE.BIN/
# Linux
*~
# ========== IDE 和编辑器文件 ==========
# VS Code
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# RustRover (JetBrains IDE)
.idea/
*.iml
*.iws
*.ipr
# Visual Studio
.vs/
# Sublime Text
*.sublime-*
# ========== 环境变量和密钥 ==========
# 环境变量文件(通常包含私钥)
.env
.env.local
.env.*.local
.secrets/
keys/
*.key
*.pem
# 注意:Anchor.toml 文件通常需要提交,但其中的私钥引用应该用环境变量代替
# 示例 Anchor.toml 中的私钥配置应该类似:
# [provider]
# wallet = "./id.json" # ← 这个文件不应该提交
# 推荐做法:在 Anchor.toml 中使用环境变量
# wallet = "${ANCHOR_WALLET}"
# ========== Node.js/前端(如果项目包含前端) ==========
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
build/
.next/
out/
# ========== 日志文件 ==========
*.log
logs/
# ========== 临时文件 ==========
*.tmp
*.temp
tmp/
temp/
# ========== Solana CLI 相关 ==========
# Solana 配置和密钥对
~/.config/solana/
~/.cache/solana/
# ========== 测试相关 ==========
# 测试覆盖率报告
coverage/
*.lcov
# ========== 构建产物 ==========
# TypeScript 编译输出(如果使用TS)
**/*.js
**/*.js.map
**/*.d.ts
!tests/**/*.js # 如果测试文件需要JS,可以按需调整
# ========== 文档生成 ==========
docs/_build/
doc/
target/doc/
# ========== 特定 IDE 配置 ==========
# JetBrains IDEs
.idea_modules/
# Eclipse
.settings/
.classpath
.project
# NetBeans
nbproject/