Closed zaim closed 11 years ago
Currently this task only aims for components providing single js file. Components that provide multiple files or multiple file types are not supported.
Maybe you should check grunt-bower-task? It can set different path for each file types.
And, for the using bower list --path
part, it's actually used in the early version of grunt-bower
.
But soon after that I realized that many components registered in Bower registry, don't have proper main
property set. Say underscore
, requirejs
, moment
, and so on.
These components do show a path in bower list --path
, but it's just the installed component's folder path, providing little to none usefulness.
Components without the
main
property is failing to be copied.An example of this kind of component is normalize-css: https://github.com/necolas/normalize.css/blob/master/component.json
Running
bower list --map
(I'm using v0.8.5) yields:I suggest just using the paths option instead (
bower list --paths
orbower.commands.list({ paths: true})
) as it outputs a normalized list of files, combining themain
,styles
, etc. properties:NOTE: Not sure what to make of the
styles
property since it seems to be undocumented (even the final spec for themain
property is still up in the air as the issue is still open)