Project

midwife

0.0
No commit activity in last 3 years
No release in over 3 years
A collection of preprocessors for frontend development
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 1.2.6
= 3.1.7
= 0.5.3
= 1.4.1
= 0.9.2.2
~> 0.9.1
= 3.2.1
= 1.3.0
 Project Readme

Midwife

A collection of preprocessors for frontend development.

Install

$ gem install midwife

Setup

In Rakefile:

require 'midwife'

The rest:

$ rake setup

Usage

  • rake care processes haml, scss and js files once, and drops the artifacts in public.
  • rake listen processes each time you touch the files.
  • rake serve starts a web server running on localhost:9292 and listens to every change you make.
  • rake setup sets up your environment.
  • rake stitch composes png files in assets/images into a single file and drop it in public/images, as well as creates a complimentary partial _sprites.scss in assets/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

Example