michaelkrone / generator-material-app

Yet another yeoman generator for scaffolding a simple Node.js/Express/MongoDB/Angular.js app using some material design elements.
MIT License
177 stars 47 forks source link

[TODO]: set whole clientModelDefinition as optional #86

Open Stupidism opened 8 years ago

Stupidism commented 8 years ago

Because not everyone wants to use this

michaelkrone commented 8 years ago

Definitely! One of the strength of this generator was the files generated by the apiroute generator could be edited (designed!) and extended easily. This is completely gone now, this needs to be rewinded (made optional at apiroute generation).

michaelkrone commented 8 years ago

Additionally there could be a server model generator from which the clientModelDefinition can be generated, so the clienModelDefinition could sync with the server model - including validation and stuff.

There needs to be an optional mapping from document property to form display name, but in most cases a .capitalize(.humanize) gives nice defaults. What do you think?

Stupidism commented 8 years ago

I think based on the current demo option, this is a easy job. Just restore the old code with <% if()> will do the trick. However, from now to June 14, I will start doing my graduation paper. I'm wondering if you can do this.

I will do this after I finished my paper or after the deadline if you don't have time to do this.

Stupidism commented 8 years ago

Server model generator is nice. With #93

Stupidism commented 8 years ago

About the default display name, it's desc option now. And it is indeed default to capitailize of name of property

michaelkrone commented 8 years ago

Yes, just wrapping in an if would be sufficient, I think.