Sam Saccone
d06af7a3d7
Default to ^ operator on --save
...
This fix brings us inline with how npm installs work and also brings us
more inline with how semver is supposed to be used.
Fixes #2144
2016-01-10 18:28:42 -08:00
Stefan Grönke
5384fa54b1
refactor, address feedback and add more unit tests
2016-01-05 05:23:19 +01:00
Stefan Grönke
2110148830
support absolute path in .bowerrc 'directory' option
...
fixes #1914
2016-01-04 01:46:53 +01:00
Roger Rodriguez Texido
6c3b7dbf58
Fixed typo.
2015-12-14 17:12:30 -05:00
Adam Stankiewicz
88758cd98c
Revert "Add bower update --save functionality"
...
This reverts commit d2ba80e6e9 .
2015-12-11 21:33:45 +01:00
Adam Stankiewicz
3bd2d62e67
Revert "Add failing tests for single package updates, optimize older tests"
...
This reverts commit 6616d09f47 .
2015-12-11 21:32:47 +01:00
Adam Stankiewicz
d3eef5772a
Revert "Only update packages requested by the user"
...
This reverts commit e3f402fc66 .
2015-12-11 21:25:15 +01:00
Chris Contolini
e3f402fc66
Only update packages requested by the user
2015-12-02 14:10:28 -05:00
Chris Contolini
6616d09f47
Add failing tests for single package updates, optimize older tests
2015-12-02 14:10:28 -05:00
Adam Stankiewicz
12258324d3
More code style rules to enforce
2015-11-30 11:06:57 +01:00
AnthonyBobsin
19fc84007d
Implements jscs to enforce a newly created style guide for the repo. Uses jscs to fix some minor style guide warnings.
2015-11-29 16:22:58 -05:00
Chris Contolini
0eadbef02d
Merge branch 'master' into update-save
2015-11-28 08:42:43 -08:00
Chris Contolini
d2ba80e6e9
Add bower update --save functionality
2015-11-28 05:40:24 -05:00
Utsav Shah
852a586d5c
Replace temp directory name with md5 hash
...
Fixes issues with characters like @ interfering with directory name
lookups
2015-11-27 13:17:36 -06:00
Utsav Shah
e8a2d92785
Remove @ in temporary directories
2015-11-27 11:36:14 -06:00
Vlad Filippov
3d4f9cd919
Fix shallow clone host
2015-11-24 14:21:27 -05:00
Adam Stankiewicz
b79034fbb9
Merge pull request #1956 from bower/strip-trailing-slash
...
strip trailing slash in urlResolver
2015-10-24 11:09:32 +02:00
Adam Stankiewicz
8f0a3d727e
Merge pull request #1969 from chrisjons/svn_improvements
...
use --non-interactive when running svn client
2015-10-24 10:41:21 +02:00
Thomas Walpole
43d00deb88
fix issue #1962 - ignoredDependenices multiple install run
2015-10-23 11:52:40 -07:00
Christian Jönsson
4836a0cae9
use --non-interactive when running svn client
...
If there is a problem in connecting to the Subversion server,
e.g. credential or certificate related, the CLI client will pause to
ask the user for input on the console. This is not handled by bower
Subversion Resolver, causing the install process to hang forever
with no message printed to the bower user.
Running the Subversion CLI client with the option --non-interactive
will instead cause the client to exit upon such an error.This is
detected by the bower resolver and the message printed to the user,
making it much easier to investigate and solve the underlying problem.
2015-10-23 13:05:16 +02:00
Patrick Kettner
452217e9fa
strip trailing slash in urlResolver
2015-10-17 21:48:10 -05: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
3ce2dd3989
Replace all fs with graceful-fs
2015-10-14 14:31:13 +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
d614b057c9
fix: Set environment variable as string, not number
2015-10-13 17:27:27 +02:00
Adam Stankiewicz
da961a9c42
Pass proxy configuration to request.js via env variables
2015-09-28 17:34:06 +02:00
de Winter, Anton
8ff0e0e2d1
Components that are not installed by bower should be left alone
...
Rework of commit by @wibblymat for PR #1363
Make compatible with existing tests
Uses fs.readdirSync() (once!) instead of async method.
Added new test
2015-09-28 17:18:36 +02:00
Adam Stankiewicz
ffde6bd228
Remove version generation from "bower init" command, closes #1343
2015-09-28 17:07:29 +02:00
JD Isaacks
498fe84b99
Use values from package.json as defaults if exists
2015-09-27 19:39:46 +02:00
Adam Stankiewicz
9cc3dd4c92
Pass certificate for GitHubResolver and UrlResolver, closes #1869
2015-09-27 18:18:11 +02:00
Adam Stankiewicz
bf23d81c9e
Update bower-config and fix tests for ignoreDependenies
2015-09-27 18:18:11 +02:00
Adam Stankiewicz
6e1a994c26
Merge pull request #1922 from pwang2/feature/allow-resolver-passed-via-cli
...
allow --config.resolvers={required package}
2015-09-27 12:31:37 +02:00
Thomas Walpole
2ccc05cb98
get ignoredDependencies from .bowerrc instead of bower.json
2015-09-27 12:27:39 +02:00
SignalDancer
4805c3615b
Allow Ignore For Child Dependencies
...
Fix for bug #927 . Ignore package if name matches specified in bower.json.
Permit fetch if package is explicitly declared in dependencies or devDependencies.
Designed for users who need tighter control of versions due to corporate liscence restrictions or other reasons.
Code Review Comments
2015-09-27 12:27:38 +02:00
Adam Stankiewicz
1e166189ba
Merge pull request #1917 from lukemelia/improve-version-failure-message
...
Include package name in error info when a version is not found.
2015-09-24 14:17:13 +02:00
Adam Stankiewicz
87a041a212
Fix --save-exact feature for github endpoints, fixes #1925
2015-09-24 13:34:49 +02:00
Adam Stankiewicz
9c52ec2751
Revert "Auto-sort bower.json dependencies alphabetically, fixes #1373 "
...
This reverts commit 9dd79a8061 .
2015-09-24 11:06:55 +02:00
Peng Wang
889b54f309
allow --config.resolvers={required package}
2015-09-17 16:25:05 -05:00
Luke Melia
5d13ffda09
Include package name in error info when a version is not found.
...
Prior to this commit, when specifying a package version that cannot
be resolved, but other versions are available, the error message
did not state which what package failed, allowing for confusion.
For example, you might see:
```
bower ENORESTARGET No tag found that was able to satisfy 1.0.2
Additional error details:
Available versions: 1.0.1, 1.0.0
```
After this change, in the above situation the svn and git resolvers
will produce the following:
```
bower ENORESTARGET No tag found that was able to satisfy 1.0.2
Additional error details:
Available versions in somelib: 1.0.1, 1.0.0
```
2015-09-12 21:10:01 -04:00
Sindre Sorhus
490f63a838
modularize the MD5 util function
2015-09-03 11:00:38 +07:00
Adam Stankiewicz
26f80d25be
Put smart host detection behind a configuration, fixes #1764
2015-08-25 22:26:26 +02:00
Adam Stankiewicz
dd67cc7de0
If cwd provided explicitly, force using it, fixes #1866
2015-08-23 16:24:36 +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
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