21 Commits

Author SHA1 Message Date
André Cruz
82ae977ba6 Only fire end event when end saving reps to the component,json, #258. 2013-02-24 12:10:05 +00:00
André Cruz
e7299b1125 Add --save-dev flag to the install command, #258. 2013-02-17 16:42:44 +00:00
David DeSandro
b7cbd36a07 Close GH-251: add --dev install option for devDependencies, cleaned up. Fixes #246, Fixes #80 2013-02-14 22:47:41 +00:00
André Cruz
b6eb6642f8 CS. 2013-02-02 11:16:58 +00:00
André Cruz
2c992f1ece Fix some minor issues, closes #214. 2013-02-01 00:25:13 +00:00
André Cruz
755d87338d Add --force-latest flag to allow conflict resolution, #214. 2013-01-31 23:16:27 +00:00
André Cruz
9c34adf2dc Merge branch 'completion' of git://github.com/mklabs/bower into completion
Conflicts:
	lib/commands/register.js
2012-12-30 10:28:39 +00:00
Mickael Daniel
b544425667 completion - generic method to complete command options
at command level, attach the `shorthand` Hash to the completion
function. The completion command will then try to complete shorthands
and longer flag based on user input.

completing after just one `-` will complete the list of short flags.

completing after just two `--` will complete the list of longer flags.
2012-12-25 16:03:21 +01:00
André Cruz
879f19c70a Fix uninstall removing packages not saved in the component.json, fixes #178.
Also fix possible issues with options in other commands.
2012-12-10 16:03:57 +00:00
Mickael Daniel
174c37d75d Tab completion, handler for install command
- results of the first lookup is cached to
  ~/.bower/completion/install.json
- consider caching in ~/.bower/cache instead, so that cache-clean
  command also removes completion cache.
2012-12-01 21:32:07 +01:00
André Cruz
30d95d3751 Fix resolve event emitting data in the install/update commands. 2012-11-20 20:51:56 +00:00
André Cruz
3b1642a52f Fix warn template, add missing command types. 2012-11-19 00:15:43 +00:00
André Cruz
bc598a334b Add jshintrc and fix all CS issues related to it. 2012-11-18 20:44:41 +00:00
André Cruz
aa30fe885a Uninstall now removes also nested deps if not shared.
The uninstall now warns and halts uninstalling shared packages.
Though it can be forced with the --force flag.
Also fix CS, and fix small bug.
2012-11-18 16:49:25 +00:00
André Cruz
d23adeef5a Fix force flag. 2012-11-03 13:21:00 +00:00
André Cruz
83661eec48 Quick fix. 2012-10-27 14:38:05 +01:00
André Cruz
3bcd2e08e8 Revert "Ability to disable colors with the --no-colors arg."
This reverts commit 008e0d8c8a.
2012-10-15 20:16:48 +01:00
André Cruz
008e0d8c8a Ability to disable colors with the --no-colors arg. 2012-10-15 01:27:33 +01:00
André Cruz
058524ca53 Add -f option to the install command. 2012-10-11 23:16:00 +01:00
Andre Cruz
fd31f247a6 Unit of work implementation.
A unit of work is a simple storage with write lock/unlock.
The manager/package now share a unit of work instance.
The unit of work is used to prevent shared dependencies from being cloned/copied "at the same time" fixing issue #81.
The prune and version resolving algorithm was also not correct. It now resolves versions correctly, fixing issue #57.

- Fix I/O errors caused by copying/clone repos simultaneously to the same dest.
- Optimize the clone/copy step by avoiding it if the last resolved resource is the same.
- Fix failing test (at least on my windows machine)
- Add some more tests
- Fix CS.
2012-10-11 13:40:54 +01:00
Chris Aniszczyk
c220329337 Initial Release
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
2012-09-06 17:11:42 -07:00