Created
May 15, 2014 08:37
-
-
Save badsyntax/17f9742387dfee0659e2 to your computer and use it in GitHub Desktop.
Bower install does not use .bowerrc in cwd.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bower = require('bower'); | |
var path = require('path'); | |
var cwd = path.resolve(__dirname, 'project'); | |
bower.commands.install([], {}, { | |
cwd: cwd | |
}) | |
.on('log', function(result) { | |
console.log(result.id, result.message); | |
}) | |
.on('end', function(results) { | |
console.log('end', results); | |
}) | |
.on('error', function(err) { | |
console.log('error', err); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "bowertest", | |
"version": "0.0.0", | |
"description": "", | |
"main": "install.js", | |
"scripts": {}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"bower": "~1.3.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment