forked from kleneway/pastemax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexcluded-files.js
145 lines (126 loc) · 2.44 KB
/
excluded-files.js
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// List of common files to exclude by default
// Users can still manually select these files if needed
// Paths can include glob patterns (*, **, etc.)
module.exports = {
// Files to always exclude by default when a folder is first loaded
excludedFiles: [
// NPM/Yarn/Node related
"package-lock.json",
"yarn.lock",
"npm-debug.log*",
"yarn-debug.log*",
"yarn-error.log*",
"pnpm-lock.yaml",
".npmrc",
".yarnrc",
".nvmrc",
"node_modules/**",
// JavaScript/TypeScript related
".eslintrc*",
".prettierrc*",
"tsconfig*.json",
"*.d.ts",
"*.min.js",
"*.map",
// Python related
"__pycache__/**",
"*.pyc",
"*.pyo",
"*.pyd",
".pytest_cache/**",
".coverage",
".python-version",
"venv/**",
".venv/**",
"*.egg-info/**",
"pip-log.txt",
"pip-delete-this-directory.txt",
// Go related
"go.sum",
"go.mod",
"vendor/**",
// Java related
"*.class",
"*.jar",
"target/**",
".gradle/**",
// Ruby related
"Gemfile.lock",
".bundle/**",
// PHP related
"composer.lock",
"vendor/**",
// Rust related
"Cargo.lock",
"target/**",
// .NET related
"bin/**",
"obj/**",
"*.suo",
"*.user",
// Binary and image files
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ico",
"*.webp",
"*.svg",
"*.pdf",
"*.zip",
"*.tar.gz",
"*.tgz",
"*.rar",
// IDE and editor files
".idea/**",
".vscode/**",
"*.swp",
"*.swo",
".DS_Store",
// Build output
"dist/**",
"build/**",
"out/**",
".next/**",
// Log files
"logs/**",
"*.log",
// Database files
"*.sqlite",
"*.db",
// Environment and secrets
".env*",
".aws/**",
"*.pem",
"*.key",
// Docker related
"docker-compose.override.yml",
// Misc
".git/**",
".github/**",
".gitlab/**",
],
// File extensions to always mark as binary/unselectable
// The app already has binary detection, but this ensures specific types
// are always treated as binary regardless of content detection
binaryExtensions: [
// Images (including .svg which might not be detected as binary)
".svg",
".jpg",
".jpeg",
".png",
".gif",
".bmp",
".tiff",
".ico",
".webp",
// Other binary formats
".pdf",
".doc",
".docx",
".xls",
".xlsx",
".ppt",
".pptx",
],
};