]> source.dussan.org Git - gitignore.git/commitdiff
Update to take into account Dart SDK 1.20 2165/head
authorGary Smith <ArgentiApparatus@users.noreply.github.com>
Tue, 1 Nov 2016 11:50:48 +0000 (07:50 -0400)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2016 11:50:48 +0000 (07:50 -0400)
Dart SDK 1.20 no longer creates `packages` directories. Added comments to `pub` files section to differentiate  what is needed for >= SDK 1.20 and what is additionally needed for older SDK versions.

Dart.gitignore

index 7c280441649860d99e9df07c398b32012ea8fffd..4b366585ddc72341c8724e47d7542ab6c05a52e9 100644 (file)
@@ -1,13 +1,19 @@
 # See https://www.dartlang.org/tools/private-files.html
 
 # Files and directories created by pub
-.buildlog
+
+# SDK 1.20 and later (no longer creates packages directories)
 .packages
-.project
 .pub/
 build/
+
+# Older SDK versions
+# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20)
+.project
+.buildlog
 **/packages/
 
+
 # Files created by dart2js
 # (Most Dart developers will use pub build to compile Dart, use/modify these 
 #  rules if you intend to use dart2js directly