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:
Create src, img, and layouts directories
Put appropriate .gitignore files in them
For every file that has a Squib::Deck.new in it
Move it to the src folder
Add a Rake task to load that file (based on its name)
Add some Guard tasks (related to #165) based on those tasks
Add some other neato Rakefile tasks, like incorporating wkhtmltopdf, enabling and disabling color, etc.
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.
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 thansquib 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 likeimg
,src
, andlayouts
.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:
src
,img
, andlayouts
directories.gitignore
files in themSquib::Deck.new
in itwkhtmltopdf
, enabling and disabling color, etc.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.