yeoman / generator-polymer

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

Path option for test file ? #256

Open celinelouvet opened 8 years ago

celinelouvet commented 8 years ago

Hello,

I use a lot --path option in order to create my elements. For example : yo polymer:el my-element --path foo

But, while my element is created in elements/foo/ as expected, the test file is created in test/. I was expecting it in test/foo, to keep the same path.

Usually, I move it manually and update the test/index.html to match the new path.

Versions:

OS: Mac Yosemite node: v5.0.0 npm: v3.5.2 yo: v1.5.1 generator : v1.2.8

samccone commented 8 years ago

:+1: nice bug :bug: find :mag: @celinelouvet

looks like this is the chunk in question https://github.com/yeoman/generator-polymer/blob/master/el/index.js#L121-L147

We will want to mirror what we are doing here https://github.com/yeoman/generator-polymer/blob/master/el/index.js#L84-L89

Should be a pretty straightforward patch :hammer:

@celinelouvet any interest in opening up a PR for this? I can help you through the process

Thanks again! :sparkles:

celinelouvet commented 8 years ago

Hi,

Why not ! But I won't have time before next week.

Thanks :)

samccone commented 8 years ago

oh awesome, no worries at all, let me know if I can be of any help!