pub 

Send to Kindle
home » snippets » dart » pub



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]