den 0.1.3 den: ^0.1.3 copied to clipboard
A pubspec authoring tool.
den #
A pubspec authoring tool.
Den provides the following CLI commands to manipulate and analyze your pubspec:
bump
, install
, uninstall
, fetch
, and pull
.
##Install
pub global activate den
##Usage
###Package Authors
Add the following package installation instructions to your README:
pub global activate den
den install <your package name>
###End Users
# `den ...` requires Dart >=1.7, on 1.6 use `pub global run den ...`
# Bump your pubspec version (and do a tagged version commit if in a git repo)
den bump 1.2.3
den bump patch
den bump major --pre-id beta
den bump release --pre
# Install dependencies (defaults to '>={latest stable} <{next breaking}')
den install polymer browser
den install unittest --dev
den install polymer#any
den install git://github.com/owner/repo.git -sgit
den install git://github.com/owner/repo#ref -sgit
den install path/to/foo -spath
# Uninstall dependencies
den uninstall junk kludge
# Keep dependencies up-to-date
# Show outdated (all by deafult)
den fetch
den fetch polymer
# Update outdated to '>={latest stable} <{next breaking}' (all by default)
den pull
den pull polymer
# Install comprehensive TAB-completion for den
den completion install
# Complete commands, options, package names, etc.
den i[TAB] -> install
den install unit[TAB] -> unittest
den uninstall j[TAB] -> junk
den fetch p[TAB] -> polymer
den pull p[TAB] -> polymer
##^ Constraints
den install
and den pull
will take advantage of ^ constraints
e.g. ^1.2.3
if either of:
- Your sdk constraint disallows pre-1.8.0 SDKs when ^ was introduced.
- You pass the
--caret
flag, which updates your sdk constraint for you.
Otherwise, they will use range syntax e.g. >=1.2.3 <2.0.0
##Inspiration
den install
was inspired by npm install --save
and bower install --save
den fetch
and den pull
were inspired by david
and david update
.