-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Scaffolding? #7
Comments
What sort of implementation are you thinking? |
Right now the tool only generates, "almost empty" files for most cases. |
That will work inasmuch as we don't get too opinionated. PR and ideas welcomed. |
How exactly can i help it? I'd like to participate in this. Mantra routing, mantra models.. |
IMHO Grails did Scaffolding quite well: combination of dynamic and static scaffolding, even at a later time in the project, and also the possibility for the users to modify the scaffolding templates (to fit with the CSS framework/Theme required markup). This is the main reason we use Grails in so many projects (despite other disadvantages): the productivity gain (even in projects with many iterations and changes) is fantastic. If Mantra-CLI could boost Meteor in such a way, Grails Scaffolding does Grails, it could become a serious adoption motivator for Meteor for a whole new group of users. |
Okay I see where we are headed. We have some ideas but they are vague at best. I think we need to brainstorm some examples of commands and their possible outcomes. e.g.
|
@sungwoncho see Grails commands for an example (the quick reference):
Might be interesting the distinction between "create" vs "generate": Create makes an "initial" stub (by no means complete), but based on available info: If the user adds some fields the application might be already usable (using dynamic scaffolding) If the user calls, e.g. These are all for Model/Domain specific to the user's work, not those required by the various plug-ins. |
I wonder if this counts as too "opinionated" but consider the following command to easily get up and going for a prototype CRUD application:
It would create the following:
I think that covers it all. It could start by supporting the recommended libraries, i.e. FlowRouter for the routes but eventually become extensible whereas the developers could create their own templates for their library of choice; thus, removing mantra-cli's opinion. |
Hi,
Any plans adding scaffolding support?
Thank you.
The text was updated successfully, but these errors were encountered: