generator-polymer icon indicating copy to clipboard operation
generator-polymer copied to clipboard

Path option for test file ?

Open celinelouvet opened this issue 10 years ago • 3 comments

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

celinelouvet avatar Dec 30 '15 21:12 celinelouvet

:+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:

samccone avatar Dec 30 '15 23:12 samccone

Hi,

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

Thanks :)

celinelouvet avatar Jan 03 '16 16:01 celinelouvet

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

samccone avatar Jan 03 '16 18:01 samccone