Commit Graph

22 Commits

Author SHA1 Message Date
André Cruz
4dde213a6f Typos. 2012-11-21 00:21:09 +00:00
André Cruz
069e9b80b6 Capture errors while resolving and present a summary. 2012-11-20 19:05:54 +00:00
André Cruz
3ac918f306 [WIP] Errors improvement. 2012-11-20 09:13:51 +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
c06d8b271e Move name guessing logic to the package itself. 2012-11-18 11:01:36 +00:00
André Cruz
822efbe34c Huge commit.
- Support local path repositories
- Fix various issues with the list command
- If no component.json is detected, bower now creates one if the --save option is true
- Save command now saves in the form of ~tag instead of latest
2012-11-17 15:03:42 +00: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
8dc17f64f8 Important fixes to the update command.
- Update command now correctly process passed packages
- Fix packages in which the name couldn't be correctly extracted from the remote URL
- Add --force flag, just like the install command
2012-10-24 01:28:18 +01:00
André Cruz
00a4923d5f Not needed anymore. 2012-10-22 08:23:15 +01:00
André Cruz
a74f6630df Add tests for cache-clean, unified some return values. 2012-10-20 16:41:19 +01:00
André Cruz
956dac2c50 Add some useful comments. 2012-10-18 23:38:58 +01:00
André Cruz
f335f5f1fb Do not install if there is a conflict. 2012-10-18 23:17:13 +01:00
André Cruz
723cfd52d1 Remove forgotten code about the reverted componentsDir option. 2012-10-17 08:40:37 +01:00
André Cruz
faa14a079c Manually revert componentsDirectory option. 2012-10-16 23:32:00 +01:00
André Cruz
f220ee5302 Fix broken ls command. 2012-10-15 01:23:58 +01:00
André Cruz
3f79247ac2 Add componentsDirectory option, fix and add tests. 2012-10-14 20:10:22 +01:00
André Cruz
cb2cb7ea75 Fix bug with -f option, add compatibility with repos that do not have tags.
This fixes the fact that if a repo do not have tags, install/update wouldn't fetch new commits.
2012-10-14 15:54:26 +01:00
George Pantazis
a2e593c06c Make components directory configurable in component.json, otherwise default to 'components' 2012-10-13 10:57:56 -06: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
William Oliveira
3bc36649cf Exception when updating without packages 2012-09-11 01:27:23 -03:00
Chris Aniszczyk
c220329337 Initial Release
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
2012-09-06 17:11:42 -07:00