yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 150 forks source link

`polymer:gh` does not include webcomponents in the devDependencies #61

Closed ragiragi closed 10 years ago

ragiragi commented 10 years ago

After running yo polymer:gh, webcomponents in the devDependencies are not included.

I configure 3rd-party webcomponents(ex. github-ribbon) in bower devDependencies for using it in my documentation page.

$ bower install github-ribbon --save-dev

<!-- demo.html -->
<link rel="import" href="../github-ribbon/src/github-ribbon.html">
...
<github-ribbon user="ragiragi" repo="my-polymer-rating" color="orange" position="right"></github-ribbon>

then when I run polymer generator to seed github-pages, I can't find any dev-deps in the gh-pages branch.

How can I fix it?

robdodson commented 10 years ago

This is a limitation of bower. It won't install devDependencies of dependencies. It will only install devDependencies at the project level. The short term fix is to add github-ribbon as a dependency of your project. Unfortunately the longer term fix is to raise an issue with bower.