Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped to expose hand-written JavaScript while preserving ignores for generated Dart JavaScript and build artifacts, with no active review issues identified.
No open issues 🎉
What changed in this PR
This pull request updates the Dart .gitignore template so hand-written JavaScript files remain visible to Git while generated Dart JavaScript and build output continue to be ignored.
Changes:
- Removes the blanket
*.jsignore rule and its associated comment. - Preserves targeted ignores for
*.dart.js,build/, source maps, dependency metadata, and other generated artifacts. - Keeps the change limited to the Dart template.
| File | Description |
|---|---|
| Dart.gitignore | Removes the broad JavaScript ignore pattern while preserving exclusions for generated Dart and build output. |
Review effort: Lite (adaptive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to the application or project's homepage
Dart
Reasons for making this change
In a Dart web project, a new hand-written file such as
web/interop.jsdisappears fromgit statuswhen this template is used. Remove the blanket JavaScript rule. The existing rules still cover output underbuild/and files ending in.dart.js. Projects that generate JavaScript under a custom filename outside the build directory can ignore that output path locally.I checked the original and modified templates with
git check-ignorein a fresh repository. The original ignoredweb/interop.js. With this change that path is visible, while bothweb/main.dart.jsandbuild/web/app.jsare still ignored.Links to documentation supporting these rule changes
Dart's guidance on files to keep out of source control includes the build directory. Dart's JavaScript interop guide describes using JavaScript alongside Dart. A broader update discussed this rule in #3163. This PR only removes the blanket rule and its comment.
Merge and Approval Steps