Links
- Packages Directory
- args
- bench
- benchmark_harness github | docs
- dice – Lightweight dependency injection.
- enumerators
- js Access JavaScript from Dart.
- meta
- persistent – persistent data structures.
- serialization
- source_maps
- yaml
- Glossary
- Package Manager ≈
pub
- Docs
- Section from "Up and Running"
- Subcommands
- Pubspec Format
- Package layout conventions
- Dependencies
- Version Constraints
- SDK Constraints
- Uploader
- Authors
- The
part
directive is like#include
in C.- The referenced sources cannot themselves import or use library declarations.
- How to reference another file in Dart? - Stack Overflow
- Issue 3732 - dart - Add path: source strategy to pub, pull packages from location on disk
Snippets
# Ref: http://pub.dartlang.org/doc/pubspec.html name: dart2closure author: "Chirayu Krishnappa <[email protected]>" homepage: http://... documentation: http://... description: Description. version: 0.0.1 dependencies: args: any angular: git: url: git://github.com/chirayuk/angular.dart ref: test-branch analyzer_experimental: git: /Users/chirayu/gg/analyzer_experimental # git: [email protected]:chirayuk/dart_ast logging: ">=0.3.5+1" pathos: ">=0.4.1" source_maps: ">=0.4.1 <0.4.2" unittest: ">=0.3.5+1" dev_dependencies: js: any benchmark_harness: ">=1.0.2 <1.0.3" environment: sdk: ">=0.4.3"
git references in pubspec.yaml
Ref: Git packages
# http://pub.dartlang.org/doc/dependencies.html#git-packages dependencies: args: any angular: git: url: git://github.com/chirayuk/angular.dart ref: test-branch
Uploaders: Add or remove
Ref: Uploader
pub uploader add [email protected] pub uploader remove [email protected] # You can also specify the package name pub uploader --package=PACKAGE add [email protected]