yeoman / generator-polymer

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

Let you add flags for folder paths #279

Open LasseSviland opened 8 years ago

LasseSviland commented 8 years ago

I have changed my project a bit and made some changes to still be able to use the generator, maybe someone else will have use for it as well :)

Let you use optional flags to specify the path to the app folder, elements folder and bower_components for the element generator, it will not do any changes to the current behavior. This way you can still use the generator without needing to have all the same setup as the default.

usage: yo polymer:el my-element --app="path/to/my/app/folder" Let you specify the path to the app folder, or use current directory by setting --app to "."

yo polymer:el my-element --elements="my_elements" Let you specify a path to the elements folder relative to the app folder, or use the app folder by setting --elements to "."

yo polymer:el my-element --bower="my_bower_components" Let you specify a path to the bower_components folder relative to the app folder.