- Slim [for html]
- Sass [for css]
- CoffeeScript [for js]
- Yarn [package management]
Bower [package management]- GitHub Pages [deployment/hosting]
- Middleman Autoprefixer [Automatically add vendor prefixes to CSS rules]
- Middleman Favicon Maker [Generate favicon files in various sizes]
- Middleman Live Reload [Reloads the page when files change]
Install Middleman
$ gem install middleman
Start your project
$ cd ~/path/to/your/project
$ middleman init awesome-project --template=flexbox/codeless
middleman-deploy
.
You need Bundler to install gems
$ gem install bundler
Then, install them
$ bundle install
Find and install the packages you need…
$ yarn search package-name
$ yarn add package-name
If the project already contains Yarn dependencies, run
$ yarn
@import 'folder/file'
#=require 'folder/file'
Stylesheets, fonts, images, and JavaScript files go in the /source/assets/
directory.
Vendor stylesheets and JavaScripts should go in each of their /bower_components/
directories.
codeless/
├── node_modules/
│ └── ...
├── source/
│ ├── assets/
│ └── ...
middleman server
middleman build
middleman deploy
Note :
-
If you get an error with
middleman build
, make sure Imagemagik is installedbrew install imagemagick
-
If you deploy on Github pages, don't forget to uncomment these two lines in
config.rb
:activate :relative_assets set :relative_links, true
David Leuliette |
This project is free software, and may be redistributed under GNU/GPL license.