mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Add link command, change cache dirs.
This commit is contained in:
@@ -12,13 +12,14 @@ var home = (process.platform === 'win32'
|
||||
? process.env.USERPROFILE
|
||||
: process.env.HOME) || temp;
|
||||
|
||||
var cache = process.platform === 'win32'
|
||||
? path.resolve(process.env.APPDATA || home || temp, 'bower-cache')
|
||||
var roaming = process.platform === 'win32'
|
||||
? path.resolve(process.env.APPDATA || home || temp, 'bower')
|
||||
: path.resolve(home || temp, '.bower');
|
||||
|
||||
// Bower Config
|
||||
var config = require('rc') ('bower', {
|
||||
cache : cache,
|
||||
cache : path.join(roaming, 'cache'),
|
||||
links : path.join(roaming, 'links'),
|
||||
json : 'component.json',
|
||||
endpoint : 'https://bower.herokuapp.com',
|
||||
directory : 'components'
|
||||
|
||||
Reference in New Issue
Block a user