mirror of
https://github.com/bower/bower.git
synced 2026-02-03 18:44:55 -05:00
- Fix issue with download() emiting two 'resolve' events. - Do not fallback to package.json and to tag describe if there was an error parsing the json file - Move out cache dir to the config.js file - Tweak, fix and add test to the point 2.
11 lines
505 B
JavaScript
11 lines
505 B
JavaScript
var path = require('path');
|
|
|
|
var temp = process.env.TMPDIR || process.env.TMP || process.env.TEMP || process.platform === 'win32' ? 'c:\\windows\\temp' : '/tmp';
|
|
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') : path.resolve(home || temp, '.bower');
|
|
|
|
module.exports = {
|
|
directory: 'components',
|
|
json: 'component.json',
|
|
cache: cache
|
|
}; |