Coder Social home page Coder Social logo

mhayes / guard-compass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guard/guard-compass

0.0 1.0 0.0 99 KB

Guard::Compass automatically rebuilds scss|sass files when a modification occurs taking in account your compass configuration.

Home Page: https://rubygems.org/gems/guard-compass

License: MIT License

Ruby 100.00%

guard-compass's Introduction

Guard Compass Plug-in

Let you configure a Guard that will run compass whenever a stylesheet is updated.

Quick Start

$ (sudo) gem install compass
$ compass -f blueprint my_compass_project
$ cd my_compass_project
$ bundle init

Then, edit the Gemfile for it to looks like:

source "http://rubygems.org"
gem 'guard-compass'

You can now download missing gems and initialize the guard

$ bundle install
$ guard init
$ guard init compass
$ guard

Your scss(or sass) stylesheets are now guarded.

Configure Guard::Compass plug-in

The default configuration generated by ‘guard init compass’ looks like this

guard 'compass' do

You can override Compass options from the Guard declaration. You want to use
that if Guard cannot locate your compass configuration file. In this case use:

  • :project_path: path to the compass project directory (from guard working directory)
  • :configuration_file: path to your compass configuration file (from guard working directory)

By default, the project path is equal to the guard working directory(the folder from where you start Guard).
Compass will look into some default location for the config file from there.

The configuration_file is computed by compass. You don’t need to define watchers like
in other Guard plug-in because they are generated from the Compass configuration files, cool!

For the complete list of options, please refer to the Compass documentation.

Roadmap

0.1.0

  • Implements notifications
  • Create a watch rule based on the compass config file

0.1.1

  • Detect rails install and generate watcher accordingly

guard-compass's People

Contributors

oliamb avatar rymai avatar adamnbowen avatar bradphelan avatar rgabo avatar

Watchers

Mark Hayes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.