Commit Graph

15 Commits

Author SHA1 Message Date
Adam Stankiewicz
4b4a854ed8 Restore directory structure for published bower
It's because people are depending on internals of bower, like
"bower/lib/renderers/StandardRenderer"

Instead we move templates and bin to lib directory and leave
paths intact. Additionally we alias bin/bower to lib/bin/bower.
2016-01-27 14:47:18 +01:00
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
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
Veres Lajos
962a565d30 typo fixes 2014-11-02 22:40:58 +00: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
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
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
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
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
41486d44ee Tweaks. 2013-05-31 19:11:21 +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
cfb3d14028 Initial take on the commands + renderers + cli. 2013-05-23 19:55:59 +01:00