Skip to content

Commit 56feedc

Browse files
authored
Drastically simplify .gitignore for Dart
Our typical workflow has JS and related build outputs in the `build` directory. Most users are on new SDKs, so we don't have to worry about these ignores. Most users don't generate docs locally. If they do, it's easy to add the entry to their .gitignore later.
1 parent 1489551 commit 56feedc

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

Dart.gitignore

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,8 @@
11
# See https://www.dartlang.org/tools/private-files.html
22

33
# Files and directories created by pub
4-
5-
# SDK 1.20 and later (no longer creates packages directories)
64
.packages
75
.pub/
86
build/
9-
10-
# Older SDK versions
11-
# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20)
12-
.project
13-
.buildlog
14-
**/packages/
15-
16-
17-
# Files created by dart2js
18-
# (Most Dart developers will use pub build to compile Dart, use/modify these
19-
# rules if you intend to use dart2js directly
20-
# Convention is to use extension '.dart.js' for Dart compiled to Javascript to
21-
# differentiate from explicit Javascript files)
22-
*.dart.js
23-
*.part.js
24-
*.js.deps
25-
*.js.map
26-
*.info.json
27-
28-
# Directory created by dartdoc
29-
doc/api/
30-
31-
# Don't commit pubspec lock file
32-
# (Library packages only! Remove pattern if developing an application package)
7+
# If you're building an application, you may want to check-in your pubspec.lock.
338
pubspec.lock

0 commit comments

Comments
 (0)