Commit Graph

26 Commits

Author SHA1 Message Date
Adam Stankiewicz
7de2e5d601 Remove moduleType from from "bower init" result, fixes #1229 2016-04-01 16:19:51 +02: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
ffde6bd228 Remove version generation from "bower init" command, closes #1343 2015-09-28 17:07:29 +02:00
Ben Cullen-Kerney
304b6393d4 Allow whitelisted values in bower.json file created by bower init
A change in the behavior of `mout.lang.isEmpty()` in Mout v0.10.0
introduced a bug in `bower init`, preventing it from including Boolean
values in "bower.json".

This commit explicitly whitelists the types that are used in the
bower.json spec - Object, Array, String, Boolean - as well as Number for
future compatibility.
2015-09-11 12:40:20 -07:00
Adam Stankiewicz
dd67cc7de0 If cwd provided explicitly, force using it, fixes #1866 2015-08-23 16:24:36 +02:00
Adam Stankiewicz
5bb77b1e03 [refactor] Prepare command argv readers for testing 2015-01-10 05:49:42 +01:00
Adam Stankiewicz
6b53ccc8bd Add tests for init command and fix it
In non-interactive mode error has been thrown in wrong way.
2015-01-09 03:18:53 +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
Eric Ferraiuolo
961d1775e5 Squashed commit of the following:
commit d5ab6721b6d0014b25ec7e5da2078627f0e794dd
Author: Eric Ferraiuolo <eferraiuolo@gmail.com>
Date:   Thu Feb 20 19:07:04 2014 -0500

    Add YUI modules as a `moduleType` choice

Closes gh-1129.
2014-04-06 18:13:37 -07:00
Mat Scales
14dc86e9ea Add the 'moduleType' property to bower init 2013-10-21 15:14:08 +01:00
André Cruz
1f8417041d Add configured directory in bowerrc to the ignores in bower init. 2013-09-28 00:31:37 +01:00
André Cruz
0866c93573 Do not swallow sync errors from commands event handlers, fixes #849. 2013-09-04 09:58:50 +01:00
André Cruz
46ae1e759c Improve non-interactive shell error message. 2013-08-20 09:26:01 +01:00
André Cruz
0eaa43c05d Missing default answer for the "Looks good?" question. 2013-08-20 00:50:21 +01:00
Andre Cruz
9fa08fee99 Close GH-797: Decoupled prompting from the inner architecture.. Fixes #645 2013-08-19 01:16:19 +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
André Cruz
098753520f Use the latest tag as the version by default for the init command.
Also fix some bugs.
2013-08-12 21:25:34 +01:00
André Cruz
f124fd4c23 Parse array items correctly in bower init. 2013-08-12 00:33:01 +01:00
André Cruz
99ca255aad Tweaks to PR #763.
#693.
2013-08-12 00:11:03 +01:00
MrDHat
3530a33fe7 Improve init. Fixes #693 2013-08-12 04:18:46 +05:30
André Cruz
8dac95d86d Do not declared linked packages as dependencies in the init command. 2013-08-02 22:08:33 +01:00
Mat Scales
79345691b8 Close GH-642: Init command.. 2013-07-22 23:40:09 +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
3aedec3e2d Add init command (not yet implemented). 2013-07-09 23:56:45 +01:00