yeoman / generator-polymer

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

Throw an error to element name without dash #277

Open motss opened 8 years ago

motss commented 8 years ago

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:

moderndeveloperllc commented 8 years ago

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

robdodson commented 8 years ago

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?

motss commented 8 years ago

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

robdodson commented 8 years ago

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