yeoman / generator-polymer

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

#110 allow el generator to take a path string for customizing output #136

Closed toadkicker closed 9 years ago

toadkicker commented 9 years ago

This addresses #110

robdodson commented 9 years ago

I decided to keep the current API for creating an element but added an optional --path flag which you can use to specify the directory structure.

ex:

yo polymer:el x-foo --path foo/bar/baz

=> app/elements/foo/bar/baz/x-foo.html
toadkicker commented 9 years ago

I was just going for deriving the path from the name, but this works too =)