npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

broccoli-ruby-sass

v0.4.0

Published

Broccoli plugin that compiles Sass using the Ruby-based compiler

Downloads

8

Readme

Broccoli Ruby Sass

Installation

npm install --save-dev broccoli-ruby-sass

Usage

var compileRubySass = require('broccoli-ruby-sass');

compileRubySass('styles', 'main.scss', 'main.css', {
  imagePath: 'someImagePath',
  style: 'nested',
  sourceComments: true,
  sourcemap: 'none',
  bundleExec: true,
  require: 'someRubyThingToRequire',
  compass: true,
  loadPath: 'load path'
});

Options

These can be passed in the options object as the last argument to the Broccoli Ruby Sass plugin.

imagePath

Type: string

Represents the public image path. When using the image-url() function in a stylesheet, this path will be prepended to the path you supply. Example: Given an imagePath of /path/to/images, background-image: image-url('image.png') will compile to background-image: url("/path/to/images/image.png").

Thanks grunt-sass for that description!

style

Type: string Default: 'nested' Values: 'nested', 'compressed', 'expanded'.

sourcemap

Type: string Default: 'none'

Configuration settings for outputting sourcemaps.

  • auto: relative paths where possible, file URIs elsewhere
  • file: always absolute file URIs
  • inline: include the source text in the sourcemap
  • none: no sourcemaps

sourceComments

Type: boolean Default: true

Print out comments in the compiled CSS that tell you the original line of the source.

require

Type: string

Require a ruby library before running the SASS compiler. By default, requires no ruby library. ``

compass

Type: boolean

Use compass mixins , will be passed as --compass to sass arguments.

bundleExec

Type: boolean Default: false

Use bundler when running ruby. Useful for locking down the ruby version between projects.

loadPath

Type: string Default: ''

unixNewlines

Type: boolean default: true on *nix (Mac OSX, Linux, FreeBSD, etc), false on windows

Use unix style newlines in output.

precision

Type: Number Default: 5

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

An string of filesystem path or importers which should be searched for Sass templates imported with the @import directive.

customArgs

Type: Array Default: []

Custom arguments that don't have a value, such as --compass and friends.

cacheLocation

Type: string default: .sass-cache

Place to put the sass cache files.