Midwife
A collection of preprocessors for frontend development.
Install
$ gem install midwife
Setup
In Rakefile:
require 'midwife'The rest:
$ rake setup
Usage
-
rake careprocesseshaml,scssandjsfiles once, and drops the artifacts inpublic. -
rake listenprocesses each time you touch the files. -
rake servestarts a web server running on localhost:9292 and listens to every change you make. -
rake setupsets up your environment. -
rake stitchcomposespngfiles inassets/imagesinto a single file and drop it inpublic/images, as well as creates a complimentary partial_sprites.scssinassets/stylesheets, which you can import into your scss.
Helpers
= render "partial" # file name must be prefixed with an underscore, ie. _partial.haml.Deploy to Heroku
$ gem install heroku
$ heroku create app_name
$ git push heroku master
$ heroku open