15 Commits

Author SHA1 Message Date
André Cruz
197fc34618 Remove unnecessary var. 2012-10-24 08:45:47 +01:00
André Cruz
9c81c3ce29 Use custom fileExists that returns true if the file exists but cannot be stat'ed.
This is needed because fs.exists was returning false values when it should actually return true.
2012-10-24 02:26:31 +01:00
André Cruz
3af267669e Return early. 2012-10-22 22:34:59 +01:00
André Cruz
f50520e04e Typo and add some useful comment. 2012-10-20 17:42:25 +01:00
André Cruz
f0836ba655 Simplified things by adding a .commit property. 2012-10-20 15:35:46 +01:00
André Cruz
97f8efcbb9 Use the lookup name when using the --save option whenever possible.
Also fix important bug regarding the checkout process in some edge cases.
2012-10-18 23:19:37 +01:00
André Cruz
d53878c130 Prune function now gives priority to non local packages if they are equal. 2012-10-17 01:01:09 +01:00
André Cruz
be79b7028c Merge branch 'no-colors' of git://github.com/sindresorhus/bower into improv_fixing 2012-10-15 20:17:35 +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
6ef92b0c95 Add and fix failing test. 2012-10-14 17:36:06 +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
Sindre Sorhus
77fb081b93 Make it possible to disable colors
Fixes #76
2012-10-05 13:53:06 +02:00
John-David Dalton
a7dca30d9d Replace Underscore with Lo-Dash. 2012-09-11 22:45:02 -07:00
Chris Aniszczyk
c220329337 Initial Release
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
2012-09-06 17:11:42 -07:00