76 Commits

Author SHA1 Message Date
André Cruz
13e2514830 Simplify. 2013-08-19 19:26:44 +01:00
André Cruz
1b505cc0e6 Fix maxSatisfying throwing on invalid versions, fixes #800 2013-08-19 19:20:29 +01:00
Andre Cruz
d42a564de8 Small tweaks to util/semver. 2013-08-18 13:16:35 +01:00
Andre Cruz
71d083a552 Use graceful-fs. 2013-08-18 13:15:12 +01:00
Andre Cruz
72e6e61970 Close GH-795: Ignore file symlinks when reading project, fixes #791 and #783.. Fixes #791, Fixes #783 2013-08-17 22:39:59 +01:00
Andre Cruz
3f0dbef7ea Minor change to util/readJson (consistency). 2013-08-17 14:01:01 +01:00
Trask Stalnaker
518f3d2a8f Close GH-773: Order tags by semver build metadata. Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0, Fixes #0 2013-08-17 11:39:51 +01:00
Andre Cruz
6ba6ea0084 Prevent deferred from being resolved because of a failed request. 2013-08-17 11:09:58 +01:00
André Cruz
60d9bfb2b8 Try junctions on windows before erroring out. 2013-08-11 10:05:40 +01:00
André Cruz
fb12fc03bf Add meaningful error when executing bower link on windows when user is not elevated.
#472
2013-08-10 21:37:13 +01:00
Sindre Sorhus
4ae1b5e04d Replace colors with chalk
colors.js has serious deficiencies like extending String.prototype which can cause all kinds of problems. Two modules using colors.js can conflict with each others, and it infects imported child modules. It's also better to explicit.

[chalk](https://github.com/sindresorhus/chalk)
2013-08-07 22:06:47 +02:00
André Cruz
f332de8ba9 Do not follow symlinks, closes #730. 2013-08-07 01:50:49 +01:00
André Cruz
b282d02a77 Fix jshint error. 2013-08-05 22:59:01 +01:00
Mat Scales
83edff6b26 Reject the promise for a command if an error event is fired 2013-08-05 20:53:26 +02:00
André Cruz
24cabf19af Close GH-705: Refactor download to util and added retry logic in it.. Fixes #704, Fixes #699, Fixes #700 2013-08-02 23:09:31 +01:00
André Cruz
59c5caa395 Do not create a json file when saving to it is required, warn instead. 2013-07-30 08:49:33 +01:00
André Cruz
212c4c3a71 Close GH-667: Filter symlinks when copying/extracting. Fixes #665 2013-07-29 22:00:37 +01:00
André Cruz
e1a443177e Close GH-675: Upgrade to the new bower-json api.. Fixes #668 2013-07-29 21:57:35 +01:00
André Cruz
635eec013c CS. 2013-07-28 03:14:44 +01:00
André Cruz
39f3571383 Minor tweaks to last PR. 2013-07-28 03:05:16 +01:00
MrDHat
571b34c990 Close GH-671: Disable use of sudo. Fixes #498. 2013-07-28 02:36:24 +01:00
André Cruz
c06b9d696e Close GH-664: Fix for some windows users. Fixes #626 2013-07-27 15:21:14 +01:00
André Cruz
adee5cec2b Improve can extract function. 2013-07-24 09:12:20 +01:00
André Cruz
ec33766803 Switch endpoint parser to its own module. 2013-07-16 09:17:50 +01:00
André Cruz
e94cb6a4b6 Use the filename first, fallback to mime type afterwards, fixes #619. 2013-07-15 19:50:02 +01:00
André Cruz
a786fa534a Refactor md5 to its own function. 2013-07-12 15:34:05 +01:00
André Cruz
8574d50eaa Do not read json from rc. 2013-07-11 19:06:57 +01:00
André Cruz
ef60fcb9ec Check archive size before extracting, caught invalid archives. 2013-07-09 20:41:54 +01:00
André Cruz
915c8d7afa Detect old versions of git that do not support --b tag when cloning. 2013-07-06 11:59:00 +01:00
André Cruz
ca76d41f9a Report progress for remote git resolvers that take too long to clone. 2013-07-04 23:58:35 +01:00
André Cruz
008b807803 Fix json endpoints parsing in some edge cases. 2013-07-03 16:26:03 +01:00
André Cruz
7becb19da4 Implement check of newer versions in the list command.
Also:
- Fix some errors not being emitted when a command failed.
- Update semver module; no need to check .valid against null.
2013-07-03 14:37:28 +01:00
André Cruz
3e4ca5ceb9 Fix json to decomposed endpoint transformation. 2013-07-01 23:49:18 +01:00
André Cruz
fe1a635c14 Switch to graceful-fs. 2013-07-01 20:31:28 +01:00
André Cruz
d2494fb97d Allow latest targets, map to '*'- 2013-06-25 22:25:48 +01:00
André Cruz
f9f8f7aebd Implement link command.
Also:
- CS fixes
- Remove options argument from commands that do not have them
- Use console.trace instead of err.stack (more reliable)
2013-06-24 23:19:59 +01:00
André Cruz
4c3802878a Another huge commit.
- Add info command
- Fix list --paths
- Fix search with no name
- Fix conflict detection when uninstalling
- Mix tweaks and fixes
2013-06-23 01:14:08 +01:00
André Cruz
83b6820458 Huge commit.
- Add search command
- Cache clean now clears the registry cache
- Fix error when accessing an unknown deep command in the cli
- Change from 'roaming' to 'path' in the config
- Change from 'canonicalPackage' to 'canonicalDir'
- Fix dev dependencies of nested packages being fetched
- Ignore invalid installed packages
- Various cache fixes and improvements
- Fix .bower.json being deleted if a package specified ignorables
- Use fstream instead of ncp to solve the EMFILE errors
2013-06-22 17:04:50 +01:00
André Cruz
92b7668067 Add list command, some other fixes and improvements.
- Fix cache clean command
- Lots of improvements and fixes of the Manager
- Only save json if the contents changed
- Add nom like tree to installed/updated packages
- Fix help usages.
2013-06-15 21:43:01 +01:00
André Cruz
68454492e9 Add conflict resolve, presenting choices to the user.
This commit also contains:
- Simplified Manager and Project
- Add warning when an extraneous package is found.
- Fix a lot of bugs in the overall resolve process
- Made templates rendering synchronous
-
2013-06-05 00:50:23 +01:00
André Cruz
afd01cc40c Change from promise progress events to hierarchical logger.
This is an huge commit, contains other small tweaks/fixes.
2013-06-03 16:31:19 +01:00
André Cruz
e811236973 Print only the stack trace when verbose or the error has no code (usually something strange). 2013-06-02 11:49:01 +01:00
André Cruz
0a724e5a73 Simplify code. 2013-06-01 02:11:18 +01:00
André Cruz
57a9b313c4 Finish the help command and help usages for the implemented commands.
Introduce templating based on handlebars.
Minor tweaks.
2013-05-31 16:18:00 +01:00
André Cruz
20ba998383 Implement the uninstall command.
Made also some tweaks to the render stuff.
2013-05-30 21:57:05 +01:00
André Cruz
d62ccfd234 Change name separator of the endpoint (can't use pipe duh). 2013-05-29 10:36:57 +01:00
André Cruz
454436905c Huge commit.
- Changed way renderers work
- Move worker to a separate module
- Improve loglevel
- Minor tweaks
- Fix tests
2013-05-27 22:59:13 +01:00
André Cruz
005b3356f2 Several things changed.
- Make force and offline part of config, clearing all the options mess in the architecture
- Fix some bugs with the renderer
- Parse cli options
2013-05-26 13:47:13 +01:00
André Cruz
c4cbfd352e Move stdout/stderr logic to the renderers to allow for greater flexibility. 2013-05-24 11:14:14 +01:00
André Cruz
cfb3d14028 Initial take on the commands + renderers + cli. 2013-05-23 19:55:59 +01:00