Created
October 21, 2015 00:08
-
-
Save devynspencer/37de96d82f9e297141fc to your computer and use it in GitHub Desktop.
Middleman config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extensions | |
activate :directory_indexes | |
activate :automatic_image_sizes | |
activate :blog | |
activate :minify_html | |
activate :syntax | |
activate :syntax, line_numbers: true | |
activate :livereload | |
activate :gzip | |
# assets | |
sprockets.append_path File.join(root, bower_components) | |
sprockets.import_asset 'jquery' | |
sprockets.import_asset 'bootstrap' | |
# locations | |
set :fonts_dir, 'fonts' | |
set :css_dir, 'css' | |
set :js_dir, 'js' | |
set :images_dir, 'img' | |
set :helpers_dir, 'helpers' | |
# settings | |
set :markdown_engine, :redcarpet | |
set :markdown, fenced_code_blocks: true, smartypants: true | |
set :helpers_filename_glob, "**/*_helper.rb" | |
set :helpers_filename_to_module_name_proc, Proc.new { |filename| | |
basename = File.basename(filename, File.extname(filename)) | |
basename.camelcase | |
} | |
# build configurations | |
configure :development do | |
activate :livereload | |
Slim::Engine.set_options pretty: true, sort_attrs: false | |
end | |
configure :build do | |
compass_config do |config| | |
config.output_style = :expanded | |
config.line_comments = false | |
end | |
Slim::Engine.set_options pretty: false, sort_attrs: true | |
set :relative_links, true | |
activate :minify_css | |
activate :minify_javascript | |
activate :imageoptim | |
activate :asset_hash | |
activate :relative_assets | |
end | |
# deployment | |
activate :deploy do |deploy| | |
deploy.build_before = true | |
deploy.method = :git | |
end |
Author
devynspencer
commented
Oct 21, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment