Textmate bundle to remove a directory and build with Jekyll

Posted by m1755 on Stack Overflow See other posts from Stack Overflow or by m1755
Published on 2010-06-10T04:40:09Z Indexed on 2010/06/10 4:42 UTC
Read the original article Hit count: 292

Filed under:
|
|
|
|

I am looking for a simple Textmate bundle that will do the following two tasks in order:

  1. Delete the entire contents (including folders) of a directory (eg. ~/Sites/my_site).
  2. Run the jekyll command in the directory of the Textmate project.

I am going to associate this with a "save current file" and use it to auto build my Jekyll site into the specified directory each time I save a file inside the project.

Notes

  • If #2 isn't possible, then cd into a specified directory and run the jekyll command.
  • Would prefer bash or ruby.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about mac