Skip to content

Update Dart.gitignore - #3163

Closed
Purukitto wants to merge 1 commit into
github:masterfrom
Purukitto:patch-1
Closed

Purukitto wants to merge 1 commit into
github:masterfrom
Purukitto:patch-1

Conversation

@Purukitto

Copy link
Copy Markdown

Changes in reference to Dart v2

  • With Dart 2 all relevant js files are built inside /build directory which are already handled so there is no need to add .js files in the .gitignore
  • Added files that are generated by other development environments

References:

I think we can remove Avoid committing generated JavaScript files: – all of our recommended flows have folks using our build system – which puts everything in the build directory. And that's already handled.

Addressed in dart-lang/site-www#1850

Changes in reference to Dart v2
@kwalrath

Copy link
Copy Markdown

/cc @kevmoo @devoncarew

@kevmoo

kevmoo commented Sep 1, 2019

Copy link
Copy Markdown
Contributor

.DS_Store really bothers me. This should be in every mac developers ~/.gitignore_global

Comment thread Dart.gitignore
*.js_
*.js.deps
*.js.map
# Directories and files created by other development environments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These rules below are covered by existing templates:

  • Global/JetBrains.gitignore
  • Global/macOS.gitignore

I'm 👍 to the cleanup here, but I need to prevent duplicating rules covered elsewhere because they're a maintenance burden I can't support currently.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The above gitignores might not be relevant to someone developing a flutter app and if I'm developing on a windows device then having to add the MacOS gitignore seems like a very unnecessary nuance.

And I believe it can be a good way to just allow the developer to add the dart ignore and be able to manage the same

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.

TIL https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore – Nice!

We should train devs to learn to global ignore their OS- and tool-specific bits IMHO.

There is disagreement here, though!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Let me if I should just remove the same or they would be fine in the setup

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let me if I should just remove the same or they would be fine in the setup

Yes please. The other templates will get rule changes that are not synchronized here, so for the moment this is my current recommendation.

@bdougie
bdougie deleted the branch github:master December 4, 2021 15:38
@bdougie bdougie closed this Dec 4, 2021
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.

5 participants