BourbonIntegrator
Assumptions
- joins the bourbon gem and its components into project dependencies
- provides tasks for assets management
- initialize the base structure
Installation
Add this line to your application's Gemfile:
gem 'bourbon_integrator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bourbon_integrator
Configuration
Through BourbonIntegrator::Config
class:
config = BourbonIntegrator::Config.new(
"project_css_dir" => "css_dir" # default: "stylesheets"
"project_images_dir" => "img_dir" # default: "images"
"project_font_dir" => "font_dir" # default: "fonts"
"project_assets_verbose" => true # default: false
"project_cdn_url" => "http://cdn.net" # default: nil
"project_assets_http_path" => "assets" # default: "/"
"project_ui_dir" => "ui_dir" # default: "."
"project_public_dir" => "pub_dir" # default: "public"
"project_sass_dir" => "sass_dir" # default: "sass"
)
Usage
Add to project's Rakefile:
require 'bourbon_integrator'
BourbonIntegrator::Tasks.load(BourbonIntegrator::Config.new)
and list available tasks:
bundle exec rake -T
# rake bi:clean # Remove compiled css
# rake bi:compile # Compile css
# rake bi:init # Initialize base structure
# rake bi:watch # Run sass watch
Versioning
See semver.org
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request