Skip to content

chore: enhance .gitignore with Node.js tooling patterns - #343

Open
bkrupa wants to merge 2 commits into
mainfrom
feature/gitignore-nodejs
Open

chore: enhance .gitignore with Node.js tooling patterns#343
bkrupa wants to merge 2 commits into
mainfrom
feature/gitignore-nodejs

Conversation

@bkrupa

@bkrupa bkrupa commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates .gitignore with patterns for Node.js ecosystem tooling commonly used alongside Rust development (e.g., for documentation sites, VS Code extensions, etc.):

  • node_modules/, dist/, .next/
  • Package manager lockfiles and caches
  • Build output and coverage directories

Files changed

  • .gitignore - Additional ignore patterns

- Add comprehensive Node.js patterns (node_modules, npm/yarn/pnpm)
- Add build output patterns (dist, build, .next, .nuxt, etc.)
- Add environment and editor patterns
- Add OS-specific patterns (macOS, Windows, Linux)

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @bkrupa, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

- Remove Node.js runtime data section (pids, *.pid, *.seed, *.pid.lock)
- Remove Frameworks section (.next, .nuxt, .svelte-kit, .vuepress/dist)
- Scope out/, dist/, build/ to twig-vscode/
- Scope server/out/, client/out/ to twig-vscode/server/out/, twig-vscode/client/out/
- Scope .cache to twig-vscode/.cache
- Move *.tsbuildinfo from Caches to TypeScript/JS build output section
- Add # rollup-plugin-typescript2 comment above .rpt2_cache* entries
- Add # npm pack tarballs comment above *.tgz
- Scope dotenv patterns with leading / to root
- Remove mcp-server/dist/ and mcp-server/node_modules/ (no such directory)
- Remove stray server/out/ and client/out/ patterns from VS Code section
Comment thread .gitignore

# TypeScript / JS build output
*.tsbuildinfo
twig-vscode/dist/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems specific to your plugin. Can we just ignore these directories in general?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants