Revising Rakefile wording
parent
73d6eb992b
commit
72eddaf1ba
|
|
@ -326,16 +326,12 @@ If you want to make a deck that has some portrait and some landscape cards, I re
|
||||||
|
|
||||||
## Rakefile
|
## Rakefile
|
||||||
|
|
||||||
New Squib projects come with a basic Rakefile. At this stage, it's basically just a shortcut for `ruby deck.rb` or whatever. But, even so this Rakefile has some advantages:
|
When you run `squib new`, you are given a basic Rakefile. At this stage of Squib, it's basically just a shortcut for `ruby deck.rb`. But, even in this simple form this Rakefile has some advantages:
|
||||||
|
|
||||||
* If you're in a subdirectory at the time, `rake` will simply traverse up an `cd` to the proper directory so you don't get rogue `_output` directories
|
* If you're in a subdirectory at the time, `rake` will simply traverse up and `cd` to the proper directory so you don't get rogue `_output` directories
|
||||||
* If you find yourself building multiple decks, you can make your own tasks for each one individually, or all (e.g. `rake marketing`)
|
* If you find yourself building multiple decks, you can make your own tasks for each one individually, or all (e.g. `rake marketing`)
|
||||||
* Don't need the `require squib` at the top of your code (although that breaks `ruby deck.rb`, so it's probably a bad idea)
|
* Don't need the `require squib` at the top of your code (although that breaks `ruby deck.rb`, so it's probably a bad idea)
|
||||||
|
|
||||||
Here's what's included in a `squib new` command:
|
|
||||||
|
|
||||||
{include:file:lib/squib/project_template/Rakefile}
|
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
|
|
||||||
Squib is currently in pre-release alpha, so the API is still maturing. I do change my mind about the names and meaning of things at this stage. If you are using Squib, however, I'd love to hear about it! Feel free to [file a bug or feature request](https://github.com/andymeneely/squib/issues).
|
Squib is currently in pre-release alpha, so the API is still maturing. I do change my mind about the names and meaning of things at this stage. If you are using Squib, however, I'd love to hear about it! Feel free to [file a bug or feature request](https://github.com/andymeneely/squib/issues).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue