meteor-guide-starter-react icon indicating copy to clipboard operation
meteor-guide-starter-react copied to clipboard

[Discussion] How about a 'tool', rather than a boilerplate

Open Batistleman opened this issue 8 years ago • 4 comments

  • I'm not sure if something like this doesn't already exist *

I liked this starting project a lot. But it's quite limited (as it should be, to be general enough...)

Wouldn't it be nice to have something like this:

mg init 
# generates this boilerplate

mg create collection tasks
# generates:
# /imports/api/tasks/tasks.js
# /imports/api/tasks/server/publications.js
# adds the publications to the server file
# etc

mg create page tasks
# generates
# /imports/ui/pages/tasks/taskContainer.jsx

etc, completely following the Meteor Guide?

Batistleman avatar Sep 09 '16 06:09 Batistleman

I have considered that and there's a discussion going on here about something similar (as part of Meteor itself), but this was the path of least friction.

dburles avatar Sep 09 '16 06:09 dburles

I made a small POC here: https://github.com/Batistleman/mgb

Batistleman avatar Sep 09 '16 09:09 Batistleman

Nice idea, an official generation tool will improve meteor apps development speed.

mhidou avatar Sep 25 '16 13:09 mhidou

Maybe worth taking a look at how https://github.com/facebookincubator/create-react-app works

dburles avatar Sep 27 '16 01:09 dburles