This is an opinionated Middleman template to get the team at Bearded building static sites quickly.
It encourages third-party asset management via Bower, and includes a default bower.json
file.
It also enables Bearded's Middleman Patterns by default.
- Sass
- Haml
- Bower for package management
- Modernizr
- Middleman Patterns
- LiveReload
- A
Procfile
,Rakefile
, andconfig.ru
for easy deployment to Heroku
-
Clone (or download) this repository to:
~/.middleman/stubbleman
git clone [email protected]:beardedstudio/stubbleman ~/.middleman/stubbleman
-
Initialize a new Middleman project with the Stubbleman project template:
middleman init my_project --template=stubbleman
-
You'll need to have NPM & Bower installed to grab the third party asset packages. Then, run
npm install
and thenbower install
.
Once Stubbleman is in your ~/.middleman
directory, you can just pull the repository periodically to stay up-to-date!
cd ~/.middleman/stubbleman
git pull
To generate Modernizr, on the command line, type npm run modernizr
. This will run generate a build of the latest version of Modernizr based on the feature detects listed in modernizr.config.json, and drop that compiled (not minified) file into source/assets/javascripts/vendor/
.
To use Grunticon, drop some SVGs into source/assets/grunticon/dev
, and then on the command line run npm run icons
. This will generate all of the necessary Grunticon-related files for you and drop them into source/assets/grunticon/production
Rimraf is set up as part of both of the Modernizr & Grunticon tasks to clean any previously generated files and prepare the directories for the newly generated files.