dburles / meteor-guide-starter-react

A basic starter application based on the Meteor guide
MIT License
20 stars 1 forks source link

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

Open Batistleman opened 8 years ago

Batistleman commented 8 years ago

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?

dburles commented 8 years ago

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.

Batistleman commented 8 years ago

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

mhidou commented 8 years ago

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

dburles commented 8 years ago

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