Commit Graph

32 Commits

Author SHA1 Message Date
Adam Stankiewicz
df8e5a16be Fix readdir call on Windows
Sometimes it return ENOENT instead of ENODIR for normal files.

This broke code paths in few places. Also, see:
https://github.com/isaacs/chmodr/pull/8
2015-10-14 16:09:38 +02:00
Adam Stankiewicz
99105fbb57 Try chmod 777 + rimraf as fallback on rimraf in all places 2015-10-14 12:50:41 +02:00
Adam Stankiewicz
0b9acc18cc Test reading commands arguments 2015-01-10 12:56:15 +01:00
Adam Stankiewicz
5bb77b1e03 [refactor] Prepare command argv readers for testing 2015-01-10 05:49:42 +01:00
Adam Stankiewicz
33842b6f92 Remove dummy completion command 2015-01-09 02:29:18 +01:00
Adam Stankiewicz
06a8f2afab Read .bowerrc from specified cwd, fixes #1301 2014-09-06 02:38:40 +02:00
Thomas Scholtes
5c83972401 Use promise interface for commands
This commit changes the interface of the command functions exported by the
files in `lib/commands`. The functions now return a promise and accept a logger
as the first argument. This has several advantages

* The promise style is consistent with the rest of the code.
* It removes a lot of duplicate code.
* The command factory does not need to proxy the logger object.
2014-06-20 21:14:26 +02:00
Adam Stankiewicz
ba33bb6aa4 Cache clean and cache list work again, fixes #1232 2014-04-13 01:45:56 +02:00
André Cruz
0866c93573 Do not swallow sync errors from commands event handlers, fixes #849. 2013-09-04 09:58:50 +01:00
Andre Cruz
cf802c368d Unnecessary check. 2013-08-18 13:14:49 +01:00
André Cruz
906990d9b5 Close GH-789: Install dependencies that have different sources, fixes #788.. Fixes #788 2013-08-17 11:50:39 +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
André Cruz
1acf4a53d3 Minor cache clean fix related to last PR. 2013-08-11 20:52:42 +01:00
André Cruz
7bacf8c425 Close GH-762: Support semver targets in cache clean command, fixes #688.. Fixes #688 2013-08-11 18:12:18 +01:00
david.bashford
e84e94a8d1 allowing cache.clean to be called with no args 2013-08-06 08:12:32 -04:00
André Cruz
b456f71b64 Fix cache clean not working correctly when a package + non-server was specified. 2013-07-30 09:07:51 +01:00
André Cruz
33cac4832f Package repository already clears the registry client cache. 2013-07-21 16:33:54 +01:00
André Cruz
91779a67fb Pass logger to the registry client, get rid of unnecessary emitter in commands. 2013-07-20 22:08:30 +01:00
André Cruz
0cf8af00b3 Separate logger into its own module. 2013-07-20 20:37:05 +01:00
André Cruz
56679d2a8e Fix passing configuration into commands on programmatic usage, fixes #608. 2013-07-11 07:56:53 +01:00
André Cruz
1bf51a047e Fix bug when cleaning the cache of specific packages. 2013-07-06 11:28:08 +01:00
André Cruz
d8cef76592 Added prune command, closes #463. 2013-07-05 01:20:28 +01:00
André Cruz
3b3e64e752 Implement removal of invalid links in the cache clean command. 2013-07-04 23:09:24 +01:00
André Cruz
d4d5a04487 Fix bug with the cache clean command. 2013-07-03 16:22:43 +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
fe1a635c14 Switch to graceful-fs. 2013-07-01 20:31:28 +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
95f9170736 Tweak cache list and clean output. 2013-06-14 11:25:19 +01:00
André Cruz
6d3b3e6de2 Add cache clean and list commands.
This was an huge commit.
- Allow nested commands
- Switch resolve cache in memory object cache to LRU
- Store non-semver packages in the cache
- Tweak help messages
- Various fixes and tweaks
2013-06-11 00:39:18 +01:00