44 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
674b02bda6 Fix another typo in the save command. 2013-02-19 13:39:19 +00:00
André Cruz
e8684ded7d Typo. 2013-02-19 13:36:37 +00:00
André Cruz
e7299b1125 Add --save-dev flag to the install command, #258. 2013-02-17 16:42:44 +00:00
André Cruz
d3d39141be Automatically clear bower cache when git commands fail with code 128, fixes #216. 2013-02-17 14:32:23 +00:00
André Cruz
72e5f36b67 Oops, remove console logs. 2013-02-12 19:07:03 +00:00
André Cruz
f030d98dab Fix automatic conflict resolver not resolving to the root package version. 2013-02-12 17:52:30 +00:00
Miloš Hadžić
7429e62d9d Don't save dependency to component.json when it doesn't resolve
Fixes the case when install is called with --save and the dependecy
is saved to component.json even if it wasn't resolved.
2013-02-05 19:51:01 +01:00
André Cruz
9ac919b7af Simplify util/save. 2013-02-01 00:22:31 +00:00
André Cruz
755d87338d Add --force-latest flag to allow conflict resolution, #214. 2013-01-31 23:16:27 +00:00
André Cruz
d7b465359c Use the original tags if defined in the conflict resolution messages, #214. 2013-01-31 20:27:54 +00:00
André Cruz
44bfa55bee Finish up conflict resolution logic, #214.
Some refactoring.
2013-01-31 20:02:30 +00:00
André Cruz
a0c7e5df57 Print a good detail message when a conflict occurs and ways to resolve it, #214. 2013-01-29 14:42:46 +00:00
André Cruz
1d3d37034f Initial sketch to solve issue #214. 2013-01-29 01:35:52 +00:00
André Cruz
9623f44d83 Fix mismatch issue, #214. 2013-01-27 15:27:01 +00:00
Joshua Johnson
1d06f7e93c Fix typo. 2013-01-09 13:27:17 -05:00
André Cruz
64ed10530b Fix some issues and also fix CS. 2012-12-30 11:30:24 +00:00
André Cruz
eb9f6aca03 Merge branch 'master' of github.com:twitter/bower into completion
Conflicts:
	README.md
	lib/commands/register.js
	lib/core/config.js
2012-12-30 11:01:11 +00:00
André Cruz
f9c1e81fb3 Fix error while executing an unknown command, fixes #179. 2012-12-13 09:49:13 +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
4a81edf5da Fix removal while using link, do not proceed if a local repo is detected. 2012-11-21 22:44:37 +00:00
André Cruz
e021276072 Extract and present errors from the shell (e.g.: git commands). 2012-11-20 20:13:17 +00:00
André Cruz
88d674848f Fix save flag for asset packages. 2012-11-19 20:00:56 +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
c645768267 Remove unused code. 2012-11-18 16:56:05 +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
04919746e8 Fix little issue with packages + tag scheme. 2012-11-17 22:19: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
Merrick Christensen
eb747d7508 If the dependencies object doesn't exist on a --save. Create it. 2012-11-03 14:34:36 -06:00
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