andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
918 stars 67 forks source link

Create a `squib generate` and `squib organize` cli #190

Open andymeneely opened 7 years ago

andymeneely commented 7 years ago

Now that I'm starting to figure out how to scale Squib projects to multiple decks and whatnot, I'm thinking it's time to get back to the actual squib CLI and provide something more useful than squib new.

I like the squib new template - it's easy to get started, pretty transparent. But I'm finding that the default layout isn't quite the final layout, as I tend to organize things around my Rakefile, and separate folders for things like img, src, and layouts.

It would be cool if the Squib CLI could actually make this conversion super easy. Like how Rails has pretty smart generators. Here are some thoughts:

squib organize

This would:

squib generate deck characters

Assuming you've already done a squib organize, you can add a new deck of, say, characters. It would add a default layout file, default deck file, add Rake tasks, add Guard tasks, etc.

Adding in other options for built-in layouts, preset options, and whatnot would also be super helpful.

andymeneely commented 7 years ago

I'm headed this way with the new squib new --advanced. I really like Thor as a generator for this too. And ERB.