Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.
/ sauce Public archive

Minimal, components-based Middleman template.

Notifications You must be signed in to change notification settings

nshki/sauce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sauce

Overview

Vanilla Middleman template designed to minimize configuration time and get you writing code right away. Sauce uses Haml for markup, Sass & Autoprefixer for stylesheets, and CoffeeScript for scripts. It also ships with the handy Middleman extensions middleman-livereload and middleman-gh-pages.

Stylesheet and script architecture is designed with the idea of components in mind -- independent, self-contained files designed for a specific purpose.

For stylesheets, these live in the source/stylesheets/components directory. For scripts, these live in the source/javascripts/modules directory. Modules are components. JavaScript components are called modules simply for the sake of distinguishing what type of component you can refer to.

Install

# Clone the repo as a Middleman template
mkdir ~/.middleman
cd ~/.middleman
git clone git@github.com:nikiliu/sauce.git

# Update to latest version
cd ~/.middleman/sauce/
git pull

Usage

# Start a project with Sauce
middleman init my_project --template=sauce
cd my_project
rm -rf README .git/

# Fire up a local development server
bundle exec middleman server

# Publish a build to the gh-pages branch on GitHub
bundle exec rake publish

File Structure

|_ source/
|  |_ images/
|  |_ javascripts/
|  |  |_ modules/              # Self-contained modules
|  |  |_ vendor/               # Third-party scripts
|  |
|  |_ layouts/
|  |
|  |_ stylesheets/
|     |_ config/               # App-wide style config
|     |_ components/           # Self-contained components
|     |_ vendor/               # Third-party styles

About

Minimal, components-based Middleman template.

Resources

Stars

Watchers

Forks

Packages

No packages published