Add link command, change cache dirs.

This commit is contained in:
André Cruz
2012-11-21 01:10:22 +00:00
parent e80ed8d130
commit 648fcace0f
5 changed files with 131 additions and 3 deletions

View File

@@ -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'