These are chat archives for afj176/generator-mongoose

8th
Oct 2014
Antonio Fernandes
@afj176
Oct 08 2014 17:46
Hey guys i got behind on this chat, as i didnt see the emails but hey, i got the app now: https://gitter.im/apps
Hey @arvind21 from my understanding, is yes there will be another project involved: generator-express-component from what Cody conveyed to me was that he be would abstracting the modal creation part of schema sub gen, then redoing schema sub gen to be pluggable , like add a yo-rc and then boom extra functionality
@kingcody correct me where I am wrong here
Antonio Fernandes
@afj176
Oct 08 2014 17:52
what I wrote was super vague now that I reread it, but I will post some ref links to yo-rc
yeoman/generator#312
Cody Mize
@kingcody
Oct 08 2014 21:16
@afj176, pretty much. I was thinking use generator-mongoose-component for the schema/model gen.
Antonio Fernandes
@afj176
Oct 08 2014 21:19
hows it going cody, anything you need help with let me or Arvind know
Cody Mize
@kingcody
Oct 08 2014 22:25
Cool deal, I'm trying to get a good base going with express-component. My thought was that we could use some stuff from there to hookup mongoose-component like how to initialize defaults, using runtime options to override prompts, and other common functions.
Antonio Fernandes
@afj176
Oct 08 2014 22:27
cool cool
Cody Mize
@kingcody
Oct 08 2014 22:28
I made kingcody/yo-utils which abstracts the functionality of scriptBase.js like gen-backbone uses.
Id like it if both/either of you could look through express-component when I get to a good working spot.
Antonio Fernandes
@afj176
Oct 08 2014 22:36
ok cool
Cody Mize
@kingcody
Oct 08 2014 23:16
@afj176 @arvindr21 here is the develop branch: express-component
Let me know what you think about the main gen, it sets up the yo-rc config with prompts or via options
That way you could composeWith another generator and have it set the default options for the user
Antonio Fernandes
@afj176
Oct 08 2014 23:20
ok will check it out soon