mirror of
https://github.com/bower/bower.git
synced 2026-02-11 14:34:58 -05:00
More small tweaks to the config.
This commit is contained in:
@@ -5,9 +5,9 @@ var mkdirp = require('mkdirp');
|
||||
|
||||
// Guess some needed properties based on the user OS
|
||||
var temp = process.env.TMPDIR
|
||||
|| process.env.TMP
|
||||
|| process.env.TEMP
|
||||
|| process.platform === 'win32' ? 'c:\\windows\\temp' : '/tmp';
|
||||
|| process.env.TMP
|
||||
|| process.env.TEMP
|
||||
|| process.platform === 'win32' ? 'c:\\windows\\temp' : '/tmp';
|
||||
|
||||
var home = (process.platform === 'win32'
|
||||
? process.env.USERPROFILE
|
||||
@@ -21,10 +21,11 @@ var folder = process.platform === 'win32'
|
||||
? 'bower'
|
||||
: '.bower';
|
||||
|
||||
// Guess proxy defined in the env
|
||||
var proxy = process.env.HTTPS_PROXY
|
||||
|| process.env.https_proxy
|
||||
|| process.env.HTTP_PROXY
|
||||
|| process.env.http_proxy;
|
||||
|| process.env.https_proxy
|
||||
|| process.env.HTTP_PROXY
|
||||
|| process.env.http_proxy;
|
||||
|
||||
// -----------
|
||||
|
||||
@@ -55,10 +56,10 @@ try {
|
||||
|
||||
// Add aliases that are meant to be used internally
|
||||
mout.object.mixIn(config, {
|
||||
cache: path.join(config.roaming, 'cache'),
|
||||
links: path.join(config.roaming, 'links'),
|
||||
completion: path.join(config.roaming, 'completion'),
|
||||
gitTemplate: path.join(config.roaming, 'git_template')
|
||||
_cache: path.join(config.roaming, 'cache'),
|
||||
_links: path.join(config.roaming, 'links'),
|
||||
_completion: path.join(config.roaming, 'completion'),
|
||||
_gitTemplate: path.join(config.roaming, 'git_template')
|
||||
});
|
||||
|
||||
// -----------
|
||||
|
||||
Reference in New Issue
Block a user