.gitignore pour Bun
47 règles d’exclusion pour Bun, prêtes à copier dans votre dépôt.
Runtime et boîte à outils JavaScript tout-en-un
Le .gitignore complet pour Bun
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 17:01:12 UTC
# Technologies: Bun
### Bun ###
logs
# SQLite database
*.sqlite
# Node.js diagnostic reports
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
package-json.lock
# Process ID files
pids
# Process ID file
*.pid
node_modules.bun
# Random seed file
*.seed
# Process lock file
*.pid.lock
# Lerna debug logs
lerna-debug.log*
# Library coverage
lib-cov
# Log file
*.log
# Coverage directory
coverage
# LCOV coverage data
*.lcov
# TypeScript build info
*.tsbuildinfo
# NYC coverage output
.nyc_output
# npm debug logs
npm-debug.log*
# Grunt intermediate storage
.grunt
# Yarn debug logs
yarn-debug.log*
# Bower dependencies
bower_components
# Yarn error logs
yarn-error.log*
# node-waf configuration
.lock-wscript
# Compiled binary addons
build/Release
# Node.js dependencies
node_modules/
# JSPM packages
jspm_packages/
# npm cache directory
.npm
# ESLint cache
.eslintcache
typings/
.node_repl_history
*.tgz
# Rollup plugin cache
.rpt2_cache/
.yarn-integrity
# Environment variables
.env
# Rollup CJS cache
.rts2_cache_cjs/
# Rollup ES cache
.rts2_cache_es/
# Rollup UMD cache
.rts2_cache_umd/
# Cache directory
.cache
# Next.js build output
.next
.env.test
# Nuxt.js build output
.nuxt
dist
.cache/
# VuePress build output
.vuepress/dist
# Serverless framework
.serverless/
# FuseBox cache
.fusebox/
# Local DynamoDB
.dynamodb/
# Tern.js port file
.tern-port
Ce que ces règles Bun ignorent vraiment
Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.
Logs
| Motif | Ce qu’il ignore |
|---|---|
logs |
Logs |
*.sqlite |
SQLite database |
package-json.lock |
package-json |
node_modules.bun |
bun deploy file |
lerna-debug.log* |
Lerna debug logs |
*.log |
Log file |
npm-debug.log* |
npm debug logs |
yarn-debug.log* |
Yarn debug logs |
yarn-error.log* |
Yarn error logs |
Diagnostic reports (https://nodejs.org/api/report.html)
| Motif | Ce qu’il ignore |
|---|---|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json |
Node.js diagnostic reports |
Runtime data
| Motif | Ce qu’il ignore |
|---|---|
pids |
Process ID files |
*.pid |
Process ID file |
*.seed |
Random seed file |
*.pid.lock |
Process lock file |
Directory for instrumented libs generated by jscoverage/JSCover
| Motif | Ce qu’il ignore |
|---|---|
lib-cov |
Library coverage |
Coverage directory used by tools like istanbul
| Motif | Ce qu’il ignore |
|---|---|
coverage |
Coverage directory |
*.lcov |
LCOV coverage data |
.nyc_output |
NYC coverage output |
TypeScript cache
| Motif | Ce qu’il ignore |
|---|---|
*.tsbuildinfo |
TypeScript build info |
Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
| Motif | Ce qu’il ignore |
|---|---|
.grunt |
Grunt intermediate storage |
Bower dependency directory (https://bower.io/)
| Motif | Ce qu’il ignore |
|---|---|
bower_components |
Bower dependencies |
.lock-wscript |
node-waf configuration |
Compiled binary addons (https://nodejs.org/api/addons.html)
| Motif | Ce qu’il ignore |
|---|---|
build/Release |
Compiled binary addons |
Dependency directories
| Motif | Ce qu’il ignore |
|---|---|
node_modules/ |
Node.js dependencies |
jspm_packages/ |
JSPM packages |
Optional npm cache directory
| Motif | Ce qu’il ignore |
|---|---|
.npm |
npm cache directory |
Optional eslint cache
| Motif | Ce qu’il ignore |
|---|---|
.eslintcache |
ESLint cache |
TypeScript v1 declaration files
| Motif | Ce qu’il ignore |
|---|---|
typings/ |
TypeScript v1 declaration files |
Optional REPL history
| Motif | Ce qu’il ignore |
|---|---|
.node_repl_history |
Optional REPL history |
Output of 'npm pack'
| Motif | Ce qu’il ignore |
|---|---|
*.tgz |
Output of 'npm pack' |
Microbundle cache
| Motif | Ce qu’il ignore |
|---|---|
.rpt2_cache/ |
Rollup plugin cache |
.rts2_cache_cjs/ |
Rollup CJS cache |
.rts2_cache_es/ |
Rollup ES cache |
.rts2_cache_umd/ |
Rollup UMD cache |
Yarn Integrity file
| Motif | Ce qu’il ignore |
|---|---|
.yarn-integrity |
Yarn Integrity file |
.env |
Environment variables |
.cache |
Cache directory |
.env.test |
Yarn Integrity file |
Next.js build output
| Motif | Ce qu’il ignore |
|---|---|
.next |
Next.js build output |
Nuxt.js build / generate output
| Motif | Ce qu’il ignore |
|---|---|
.nuxt |
Nuxt.js build output |
dist |
Nuxt.js build / generate output |
Gatsby files
| Motif | Ce qu’il ignore |
|---|---|
.cache/ |
Gatsby files |
.vuepress/dist |
VuePress build output |
Serverless directories
| Motif | Ce qu’il ignore |
|---|---|
.serverless/ |
Serverless framework |
FuseBox cache
| Motif | Ce qu’il ignore |
|---|---|
.fusebox/ |
FuseBox cache |
DynamoDB Local files
| Motif | Ce qu’il ignore |
|---|---|
.dynamodb/ |
Local DynamoDB |
TernJS port file
| Motif | Ce qu’il ignore |
|---|---|
.tern-port |
Tern.js port file |
Comment utiliser ce .gitignore pour Bun
- Copiez les règles Bun ci-dessus, ou téléchargez directement le fichier.
- Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
- Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
- Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.