I work on Yeoman, a workflow for improving developer speed when developing apps and aminterested in creating a Generator (scaffold) for Polymer. Would this be useful to anyone?I was thinking the workflow for the generator could be something like:$ yo polymer$ > What would you like to call your new component?Carousel
$ > Will this be a Polymer element? Y/NY
$ > Would you like some extra boilerplate code included? Y/NY
We then automatically scaffold out your component, write an index.html file including it via HTML imports and pull in Polymer (and any related files)using Bower. That's the start. If you want to go create another component using the same project (e.g a calendar), you can just run:$ yo polymer:component calendar$ > What would you like to call your new component?etc.
and it'll just scaffold out the component and also wire it up to the index using HTML imports.If this sounds interesting, I'd be happy to collaborate with Scott and Eric to define the optimal workflow and what code to scaffold out. I'm consideringwriting something for this in June.
--
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for writing this up Addy. I'm definitely up for collaborating with you. Shall we start a doc?
Thoughts inline....On Tue, May 28, 2013 at 3:40 AM, Addy Osmani <addyo...@gmail.com> wrote:I work on Yeoman, a workflow for improving developer speed when developing apps and aminterested in creating a Generator (scaffold) for Polymer. Would this be useful to anyone?I was thinking the workflow for the generator could be something like:$ yo polymer$ > What would you like to call your new component?CarouselCan we use "element" instead of "component"?
$ > Will this be a Polymer element? Y/NYSo you're considering a generator for regular joe custom elements as well?We essentially need two paths then, one for Polymer elements and one for custom elements. The differences are not that great but this is something to think aboutas Polymer's sugaring syntax evolves on top of the standards.
I don't know how Yeoman's generator system works. Is there a way to inherit functionality from another generator? Maybe it's best to create a Polymer generator for starters?
$ > Would you like some extra boilerplate code included? Y/NYWe should flesh out what this is in a doc.We then automatically scaffold out your component, write an index.html file including it via HTML imports and pull in Polymer (and any related files)using Bower. That's the start. If you want to go create another component using the same project (e.g a calendar), you can just run:$ yo polymer:component calendar$ > What would you like to call your new component?etc.What about writing an element that uses other elements? I suspect this willbe the more common case for Yeoman (e.g. someone wants to reuse another componentin the app).
This sounds great Addy. I'd love to hear more as this project evolves.-Devin
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/f2f3d3d3-5977-48ac-8731-da44fa8eae66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJj5OwD-GiEUfbw9ERbT7Pxk8Xhm0Y46fVgNfJ9%2Bp_mt6ACThA%40mail.gmail.com.
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/2497c91d-66c3-4924-8e57-fc700504ebca%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAAUBGa9nCdp-biA7ypgP4acmiw5y%2BDUef1-WE9706bAR-OF%2BfQ%40mail.gmail.com.
I've submitted a PR to make the generator more of an app scaffold. We'll review next week
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/1dec59a6-1d02-449e-a8e0-64094c5e8bbf%40googlegroups.com.