Skip to content

jamiehs/bootstrap-sass-middleman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootstrap - Sass - Middleman

A collection of libraries and helpers to quickly set up a Bootstrap and Middleman site.

Includes:

  • Bootstrap 3
  • jQuery
  • Sass + Compass
  • Modernizer.js
  • Respond.js
  • Holder.js
  • HTML5 Shiv
  • Heroku push/deploy support

Requirements/Dependencies/Tech Used

This project requires OSX or Linux, with Ruby and a few gems. It may run on Windows, but this is untested.

Ruby

Requires Ruby version 2.0 or greater. For details on installing Ruby (we suggest RVM), see the RVM page.

Installation/Setup/Configuration

Once you have the Middleman gem installed and before you start working on the project, run:

$ cd {path_to_project}
$ bundle

This will install all the needed dependencies and gems listed in the .Gemfile to get you up and running with Middleman.

Running

Since we are using Middleman, you need to run the server to view the page. Do do this run:

$ middleman

Development

You can customize the Bootstrap configuration by editing: source/css/bootstrap/_bootstrap.scss and source/css/bootstrap/_variables.scss This is the easiest way that I have found to quickly set up a static site with Bootstrap, Sass, Compass, and Middleman.

Building/Deployment

To build the project, quit the server with ctrl-c Then run:

$ middleman build

This will run the Middleman build task and generate all of the necessary files. The output of the build command will reside in a tmp directory at the root of the project.

Deploying to Heroku

Add the remote to your working copy:

$ git remote add heroku git@heroku.com:app-name.git

Ensure you have the remote added to your working copy:

$ git remote -v
heroku	git@heroku.com:app-name.git (fetch)
heroku	git@heroku.com:app-name.git (push)

This should output the remotes of the project. One should be called heroku and point to the Heroku staging subdomain.

Use the following command to push to Heroku:

$ git push heroku master

Changelog

  • 2014-07-25 - Removed the Ruby version from the Gemfile.

  • 2014-05-28 - Added a Ruby version to the Gemfile.

  • 2014-03-13 - Added Heroku build support thanks to This article on randomerrata.com

  • 2014-03-12 - Added holder.js to the source/js/vendor directory for mocking up quick images with no HTTP requests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published