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

Throw an error to element name without dash

Open motss opened this issue 9 years ago • 4 comments

Does element name need to have dash in between?

Running yo polymer:seed element-name will create a seed element and install the Bower dependencies.

However, running yo polymer:seed elementname and after a while thing stops running and nothing shows up. If a dash is required in the element's name, the error should be thrown to let the user know what happened and what's wrong and should be corrected so that they don't stare at the screen for quite a moment and have no idea what's going on. :smile:

motss avatar May 11 '16 13:05 motss

According to the specification, yes, you need a dash for all custom elements.

moderndeveloperllc avatar May 11 '16 14:05 moderndeveloperllc

Hm, I immediately get an error when I type yo polymer:seed foo

screen shot 2016-05-11 at 10 28 42 am

Are others not seeing that?

robdodson avatar May 11 '16 17:05 robdodson

Running generator-polymer 1.2.10 on Windows 10 and not seeing the error.

motss avatar May 11 '16 18:05 motss

Can you also tell me which version of node you're using?

robdodson avatar May 11 '16 18:05 robdodson