1.2.5 • Published 10 years ago
handybower v1.2.5
handybower
Install bower components and collect main files.
What's This?
Wrapper utility for bower install.
bower is great, but when installing, it downloads entire repositories and you need to find files your own.
Really annoying.
So here is handybower, which calls bower install and collect main files automatically.
Installation
npm install handybower --saveUsage
var handybower = require('handybower');
handybower([
"jquery",
"angular#1.4.3"
], {
dest: "src/third_party" // Dirname to save files.
}, function (err) {
// Will generate:
// - src/third_party/jquery.js
// - src/third_party/angular.js
});Options
| Key | Description | Default |
|---|---|---|
| dest | Destination directory path. | 'handybower_components' |
| verbose | Log verbose | false |
| main | Name of main files. | _detectFromBowerJson() |
From CLI
Install as global module.
$ npm install handybower -gInstall via CLI.
$ handybower -d src/third_party jquery angular#1.4.3License
This software is released under the MIT License.