pub-dartlang
pub-dartlang copied to clipboard
clarify in the pub install instructions that only 1 of the libraries might be all you need
From @sigmundch on July 02, 2014 20:28:13
Take a look at the 'install' tab in: http://pub.dartlang.org/packages/core_elements It lists many many libraries. Users might be tempted to include all those imports in their app, without selecting which ones they believe they need.
It happens that 1 of those 44 libraries is meant for command-line apps, while the other 43 are for client apps. Users have tripped not realizing they included an import they didn't need.
Maybe we can just clarify this in the text. Instead of:
- Import it Now in your Dart code, you can use:
Say:
- Import what you need Now in your Dart code, you can use one or more of these imports:
Original issue: http://code.google.com/p/dart/issues/detail?id=19807
From @sigmundch on July 02, 2014 11:33:20
Also - is there a way we could override these instructions in a package?
I know we could create core_elements.dart
and that will be the only library listed in the imports, but I wonder if we can have a more tailored message.