Skip to content

chore: add root-level .gitignore for Node.js and React Native #22

Description

@rohansaini-02

Problem

The repository currently has no root-level .gitignore file. As the project grows with multiple modules (poc-sync-engine, poc-frappe-api) and eventually the full React Native application, there is a direct risk of committing generated artifacts to version control.

Without a .gitignore, the following files can accidentally end up in the repository:

  • node_modules/ directories (hundreds of MBs of dependencies)
    • Build outputs (dist/, coverage/, android/app/build/)
      • Environment secrets (.env, .env.local)
        • IDE-specific configuration (.vscode/, .idea/)
          • OS metadata (.DS_Store, Thumbs.db)

This increases repository size, slows down cloning for new contributors, and creates a risk of leaking sensitive credentials.

Proposed Solution

Add a single .gitignore file at the repository root that covers the full stack used in this project:

  • Node.js / npm: node_modules/, dist/, coverage/, *.log
    • React Native: android/app/build/, ios/Pods/, *.apk, *.ipa
      • Environment: .env, .env.local
        • IDE: .vscode/, .idea/
          • OS: .DS_Store, Thumbs.db

Acceptance Criteria

  • A root-level .gitignore file exists
  • - [ ] It covers Node.js, React Native, IDE, OS, and environment patterns
  • - [ ] No existing tracked files are affected

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions