meteor-guide-starter-react
meteor-guide-starter-react copied to clipboard
[Discussion] How about a 'tool', rather than a boilerplate
- 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?
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.
I made a small POC here: https://github.com/Batistleman/mgb
Nice idea, an official generation tool will improve meteor apps development speed.
Maybe worth taking a look at how https://github.com/facebookincubator/create-react-app works