From 56feedcfa456e924bc79f2793ce792b440b2b0f0 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Fri, 10 Mar 2017 16:32:54 -0800 Subject: [PATCH 1/3] 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. --- Dart.gitignore | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/Dart.gitignore b/Dart.gitignore index 4b366585..2c6a959a 100644 --- a/Dart.gitignore +++ b/Dart.gitignore @@ -1,33 +1,8 @@ # See https://www.dartlang.org/tools/private-files.html # Files and directories created by pub - -# SDK 1.20 and later (no longer creates packages directories) .packages .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 -# Convention is to use extension '.dart.js' for Dart compiled to Javascript to -# differentiate from explicit Javascript files) -*.dart.js -*.part.js -*.js.deps -*.js.map -*.info.json - -# Directory created by dartdoc -doc/api/ - -# Don't commit pubspec lock file -# (Library packages only! Remove pattern if developing an application package) +# If you're building an application, you may want to check-in your pubspec.lock. pubspec.lock From 0548e0ba6d85fa2223932d3aa2c51c5aab37a00e Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Sat, 11 Mar 2017 13:41:14 -0800 Subject: [PATCH 2/3] Update Dart.gitignore --- Dart.gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dart.gitignore b/Dart.gitignore index 2c6a959a..16b5be3d 100644 --- a/Dart.gitignore +++ b/Dart.gitignore @@ -6,3 +6,7 @@ build/ # If you're building an application, you may want to check-in your pubspec.lock. pubspec.lock + +# Directory created by dartdoc. +# If you don't generate documentation locally you can remove this line. +doc/api/ From 39723c4ce5d5388a39fc7babd3749d485002ad5b Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Sat, 11 Mar 2017 13:41:43 -0800 Subject: [PATCH 3/3] Update Dart.gitignore --- Dart.gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dart.gitignore b/Dart.gitignore index 16b5be3d..4d2a4d6d 100644 --- a/Dart.gitignore +++ b/Dart.gitignore @@ -4,9 +4,9 @@ .packages .pub/ build/ -# If you're building an application, you may want to check-in your pubspec.lock. +# If you're building an application, you may want to check-in your pubspec.lock pubspec.lock -# Directory created by dartdoc. +# Directory created by dartdoc # If you don't generate documentation locally you can remove this line. doc/api/