Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ovcharik/meteor-ruby-sass

Ruby sass compiler for meteor
https://github.com/ovcharik/meteor-ruby-sass

Last synced: 7 days ago
JSON representation

Ruby sass compiler for meteor

Awesome Lists containing this project

README

        

# Ruby sass compiler for meteor

## Install

Package required `sass` gem.

$ gem install sass
# or check http://sass-lang.com/install

### Add package

$ meteor add ovcharik:ruby-sass

## Configuration

Add a `ruby-sass.json` file to root directory of project.

### file

type: `string`

Path to main file. Required unless specified `files`.

### files

type: `object`

Format:

'files': {
'main file': 'dependencies', // can be pattern, like 'scss/home/**/*.scss'
// or
'main file': ['array', 'of', 'dependencies']
}

### unixNewlines

type: `boolean`, default: `false`

Use Unix-style newlines in written files.

### scss

type: `boolean`, default: `false`

Use the CSS-superset SCSS syntax.

### style

type: `string`, default: `nested`

Output style. Can be `nested`, `compact`, `compressed`, or `expanded`.

### precision

type: `number`, default: `5`

How many digits of precision to use when outputting decimal numbers.

### compass

type: `boolean`, default: `false`

Make Compass imports available and load project configuration.

### comments

type: `boolean`, default: `false`

Emit comments in the generated CSS indicating the corresponding source line.

### import

type: `string`

Add a sass import path.

### require

type: `string`

Require a Ruby library before running Sass.

### cacheLocation

type: `string`

The path to put cached Sass files. Defaults to `.sass-cache`

### noCache

type: `boolean`, default: `false`

Don't cache to sassc files.

### defaultEncoding

type: `string`

Specify the default encoding for Sass files.

## Examples

### Simple

{
"file": "path/to/main/sass/file.scss"
}

### Files

{
"files": {
"styles/application.scss": ["styles/**/*.scss", "include/variabled.css"],
"vendor/bootstrap/bootstrap.scss": "vendor/bootstrap/**/*.scss"
}
}