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.
This commit is contained in:
Kevin Moore 2017-03-10 16:32:54 -08:00 committed by GitHub
parent 1489551937
commit 56feedcfa4

View File

@ -1,33 +1,8 @@
# See https://www.dartlang.org/tools/private-files.html # See https://www.dartlang.org/tools/private-files.html
# Files and directories created by pub # Files and directories created by pub
# SDK 1.20 and later (no longer creates packages directories)
.packages .packages
.pub/ .pub/
build/ build/
# If you're building an application, you may want to check-in your pubspec.lock.
# 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)
pubspec.lock pubspec.lock