Skip to content

Create Angular.gitignore #4537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 6, 2025
Merged

Create Angular.gitignore #4537

merged 2 commits into from
Jun 6, 2025

Conversation

JawherKl
Copy link
Contributor

Reasons for making this change:
This change was made to enhance the .gitignore file for Angular projects, ensuring that commonly ignored files and directories such as build artifacts, node modules, and IDE configuration files are excluded from version control. This helps improve the cleanliness of the repository and prevents unnecessary files from being tracked, making the project easier to manage.

Links to documentation supporting these rule changes:
Angular CLI documentation
GitHub’s official guide on .gitignore files
Node.js documentation on npm and yarn dependencies

@wirecat
Copy link
Collaborator

wirecat commented May 23, 2025

@JawherKl There is a lot of IDE and OS specific rules in here. Can you please remove them?
Also, could you please provide documentation that supports the entries in the gitignore you've created?

@JawherKl JawherKl requested a review from a team as a code owner May 25, 2025 15:45
@JawherKl
Copy link
Contributor Author

Thank you for your review. I've updated the .gitignore file to focus specifically on Angular-related items and removed the IDE/OS-specific rules as requested. Here's the justification for the remaining entries:

  1. Angular Build Artifacts (/dist/, /.angular/, etc.):

    • Generated by Angular CLI during build (Angular CLI docs)
    • Should never be committed as they can be rebuilt
  2. Node Modules and Lock Files:

    • Standard practice for Node.js projects (npm docs)
    • node_modules can always be reinstalled from package.json
  3. Environment Files:

  4. TypeScript Cache:

    • Generated by TypeScript compiler (TS docs)
  5. Log Files:

    • Temporary files generated during package installation

@wirecat
Copy link
Collaborator

wirecat commented Jun 6, 2025

@JawherKl thank you for the change and the references! Also, thank you for contributing to the project. I'm surprised we haven't had an Angular template until now.

FYI it will take a few days for this to show up on new.github.com.

@wirecat wirecat merged commit bbf1a67 into github:main Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants