Adam Stankiewicz
26f80d25be
Put smart host detection behind a configuration, fixes #1764
2015-08-25 22:26:26 +02:00
Adam Stankiewicz
79679f9b08
Revert "Make bower commands work from subdirectories"
...
This reverts commit 7acafc26d6 .
2015-08-25 17:11:48 +02:00
Adam Stankiewicz
dd67cc7de0
If cwd provided explicitly, force using it, fixes #1866
2015-08-23 16:24:36 +02:00
Adam Stankiewicz
63b4d37207
Merge pull request #1866 from bower/feature/cwd
...
Make bower commands work from subdirectories
2015-08-23 14:30:05 +02:00
Adam Stankiewicz
793268ed54
Merge pull request #1871 from bower/1.5.0-preview
...
Pluggable resolvers
2015-08-23 14:28:25 +02:00
Adam Stankiewicz
a4a05a5413
Make custom resolvers implementation pass through linter
2015-08-23 14:20:09 +02:00
Adam Stankiewicz
821979bab1
Rename options to bower and add "version" to resolvers options
2015-08-23 14:16:23 +02:00
Adam Stankiewicz
69be742619
Improve API for pluggable resolvers
2015-08-23 13:44:00 +02:00
Adam Stankiewicz
ed27e87540
Fix the tests
2015-08-04 06:40:03 +02:00
Adam Stankiewicz
4fc2b5cf76
Add tests and improve resolver interface
2015-08-04 06:21:06 +02:00
Adam Stankiewicz
7acafc26d6
Make bower commands work from subdirectories
2015-07-28 23:22:44 +02:00
jody tate
50fd944a62
change to use a standard three dot ellipsis
2015-07-28 08:19:05 -07:00
Adam Stankiewicz
ada6fc18d9
Implement initial version of pluggable resolvers
2015-07-09 18:30:26 +03:00
insanehong
9dd79a8061
Auto-sort bower.json dependencies alphabetically, fixes #1373
2015-04-14 00:06:13 +02:00
Adam Stankiewicz
e727566741
Revert SvnResolver changes (windows paths in URLs)
2015-03-30 00:49:06 -07:00
Adam Stankiewicz
0f68da4eb8
Add support for two-factor authentication for login
2015-03-30 00:19:05 -07:00
Adam Stankiewicz
1a7abfd3b7
Add tests for login command
2015-03-29 23:31:20 -07:00
Adam Stankiewicz
905c2775d2
Add tests for unregister command
2015-03-29 17:56:04 -07:00
Mat Scales
126da9ee12
Unregister and login commands
2015-03-29 17:56:04 -07:00
Dan Rumney
a1ecf8a413
Fixes #1754 : The version command in the programmatic API now returns the new version
...
When users of the programmatic API update the version, they may do so without having to inspect the new contents of the bower.json file to find out the new version.
This is useful in scripts where the tag needs to be pushed programatically; the user can push the new tag explicitly.
2015-03-26 10:03:52 -05:00
Nils Winkler
7e0a2ea4cb
Added check for empty remote or no protocol set.
2015-03-24 20:36:15 +01:00
Nils Winkler
912808b672
Added support for caching hosts that support shallow cloning.
2015-03-24 20:22:15 +01:00
Nils Winkler
a352d51711
Using a function reference instead of calling directly from constructor
2015-03-24 17:14:28 +01:00
Nils Winkler
4ad5ed64d7
Automatically detecting _smart Git hosts_.
...
Added logic to automatically detect smart Git hosts that allow shallow
cloning. This is done by sending an `ls-remote` request to the server
and then evaluating the returned HTTP header fields. For this, Curl
verbose logging is enabled for the `ls-remote` request, since Curl
verbose logging sends the returned HTTP headers to `stderr`.
If the `stderr` output contains the desired header
Content-Type: application/x-git-upload-pack-advertisement
then the server supports shallow cloning.
This approach uses Git and Curl for the heavy lifting. Instead of
implementing the request to the server using a simple HTTP client, Git
is used, since it takes care of authentication using stored credentials.
The used approach should also work for BitBucket, which only sends the
Content-Type header when a specific user agent is used. Using Git to
make the request enables this behavior.
The function to detect the smart Git host
(`GitRemoteResolver.prototype._supportsShallowCloning`) returns a
promise that is resolved when the server's request is evaluated. The
promise handling required an addition to `GitHubResolver.js` - to always
resolve the promise to `true`, since GitHub supports shallow cloning.
Added test cases to verify the new functionality.
2015-03-24 17:13:18 +01:00
Adam Stankiewicz
182d92f9bd
test: Fix SvnResolver tests on all platforms
2015-02-28 23:56:17 -08:00
Sindre Sorhus
6a96815c44
bump insight
2015-01-12 10:04:25 +08:00
Alexander Gugel
2f6d680b6c
Add --save-exact flag
2015-01-11 17:12:19 +01:00
Adam Stankiewicz
c7df6f50ca
Add AppVeyor config for Windows CI
2015-01-11 03:08:43 +01:00
Adam Stankiewicz
0b9acc18cc
Test reading commands arguments
2015-01-10 12:56:15 +01:00
Adam Stankiewicz
58a7de3136
Prevent loading cli module in headless mode
2015-01-10 05:53:21 +01:00
Adam Stankiewicz
5bb77b1e03
[refactor] Prepare command argv readers for testing
2015-01-10 05:49:42 +01:00
Adam Stankiewicz
e351322ce4
More tests for lookup command and little refactor
2015-01-10 04:47:43 +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
a04b69dc6a
Test and fix link command
2015-01-08 05:09:32 +01:00
Adam Stankiewicz
ee62d00c96
Add tests for "version" command
2015-01-06 20:49:17 +01:00
Adam Stankiewicz
4cb027eb73
Add tests for StandardRenderer
2015-01-06 15:56:10 +01:00
Adam Stankiewicz
7c82da8389
Add tests for register command
2015-01-06 02:13:30 +01:00
Adam Stankiewicz
537cd42097
Add tests for info command
2015-01-05 06:07:01 +01:00
Sindre Sorhus
29eaff9edc
Merge pull request #1614 from joneshf/answer-colon
...
Remove erroneous colon.
2015-01-04 23:56:01 +07:00
joneshf
a464f5a88e
Remove erroneous colon.
2014-11-29 12:22:58 -08:00
Veres Lajos
962a565d30
typo fixes
2014-11-02 22:40:58 +00:00
Adam Stankiewicz
c00cadb37a
[fix] Ensure extracted files are readable, update tar-fs
2014-09-28 18:21:24 +02:00
Ray Shan
4656021902
fix broken analytics tracking introduced in #1507
2014-09-26 22:33:43 +02:00
Laurent Goderre
ef237fc521
Added the missing install command to the update task
...
Fixes #1518
2014-09-16 16:23:25 -04:00
Adam Stankiewicz
dfd2c7a3d2
Add tests to analytics and fix them
2014-09-12 21:28:44 +02:00
John Schulz
6637762aec
"analytics" value in \.bowerrc\ removes need to prompt user
2014-09-12 00:26:41 +02:00
Adam Stankiewicz
7565c71eb2
Warn about unnecessary resolution, #1061
2014-09-08 01:13:55 +02:00
Adam Stankiewicz
d743352bc0
Disable removing unnecessary resolutions, #1061
2014-09-08 01:02:31 +02:00
Adam Stankiewicz
59d26c6825
Prevent error when piping bower output to head, fixes #1396
2014-09-07 23:46:20 +02:00