I've submitted a PR to make the generator more of an app scaffold. We'll
review next week
On Jul 13, 2014 2:20 AM, "Stefan Ritter" <[email protected]> wrote:

> I honestly thought it was a bit confusing too in the beginning, especially
> because the bower dependencies are placed into the parent directory.
> That did trip me up in the beginning, consider coming from an Angular
> generator where the folder you run the generator in is your app. I ended up
> blogging about it too
> http://blog.stefanritter.com/post/91627263720/starting-a-polymer-project
> ;)
>
> The way it's setup now you cannot use the generator to build an app as
> proposed here:
> http://www.polymer-project.org/docs/start/creatingelements.html
> Instead it assumes each component sits in is's own repo, right?
>
> Have you guys considered adding a third build option next to :app and :gh
> that would work for building an app structure with a separate components/
> bower_components/ folder? It could come with vulcanize out of the box too,
> and build the custom elements for a components/ folder based on the
> seed-element but with dependencies placed in bower_components/  - I guess
> it would be like yo element:repo on steroids?
>
>
>
>
> On Wednesday, July 9, 2014 4:03:13 PM UTC+1, Rob Dodson wrote:
>>
>> We reworked generator-polymer to use the seed-element as a starting
>> point. That seems to have confused a lot of folks so we're going to go back
>> and have it scaffold out an app, and the seed-element part will be a sub
>> generator
>>
>>
>> On Wed, Jul 9, 2014 at 5:07 AM, Zeno Rocha <[email protected]> wrote:
>>
>>> Both generator-element <https://www.npmjs.org/package/generator-element> and
>>> generator-polymer <https://www.npmjs.org/package/generator-polymer> lets
>>> you scaffold an entire project.
>>>
>>> One is based on polymer-boilerplate
>>> <https://github.com/webcomponents/polymer-boilerplate> and the other on
>>> seed-element <https://github.com/PolymerLabs/seed-element>.
>>>
>>>
>>> On Wed, Jul 9, 2014 at 3:34 AM, Robin guo <[email protected]> wrote:
>>>
>>>> why the newest version generator don't support Bootstraps, the golbal
>>>> of this version is not to build a app, just for building a custom element?
>>>>
>>>>
>>>> On Tuesday, May 28, 2013 6:40:44 PM UTC+8, Addy Osmani wrote:
>>>>>
>>>>> I work on Yeoman <http://yeoman.io>, a workflow for improving
>>>>> developer speed when developing apps and am
>>>>> interested 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/N
>>>>> Y
>>>>>
>>>>> $ > Would you like some extra boilerplate code included? Y/N
>>>>> Y
>>>>>
>>>>> 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
>>>>> considering
>>>>> writing something for this in June.
>>>>>
>>>>  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 [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/polymer-dev/2497c91d-66c3-4924-8e57-fc700504ebca%
>>>> 40googlegroups.com
>>>> <https://groups.google.com/d/msgid/polymer-dev/2497c91d-66c3-4924-8e57-fc700504ebca%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  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 [email protected].
>>> 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
>>> <https://groups.google.com/d/msgid/polymer-dev/CAAUBGa9nCdp-biA7ypgP4acmiw5y%2BDUef1-WE9706bAR-OF%2BfQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/1dec59a6-1d02-449e-a8e0-64094c5e8bbf%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/1dec59a6-1d02-449e-a8e0-64094c5e8bbf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAJj5OwAUiZyLvx0A87WpTra1cYf8EvpM0aWGUqLOj0DkamUHzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to