mirror of
https://github.com/bower/bower.git
synced 2026-02-11 06:24:57 -05:00
26 lines
506 B
JavaScript
26 lines
506 B
JavaScript
// Bower Config
|
|
|
|
// UZI
|
|
// added searchpath array
|
|
module.exports = function() {
|
|
|
|
var c = require('rc') ('bower', {
|
|
//Bower Defaults
|
|
directory: 'components',
|
|
json: 'component.json',
|
|
endpoint: 'https://bower.herokuapp.com',
|
|
searchpath: []
|
|
});
|
|
|
|
// temp for now
|
|
// rc doesn't read .bowerrc from local so we do it manually
|
|
var fs = require('fs');
|
|
if (fs.existsSync('.bowerrc')) {
|
|
c = JSON.parse(fs.readFileSync('.bowerrc').toString());
|
|
}
|
|
|
|
return c;
|
|
|
|
}();
|
|
// END UZI
|