All Projects → sindresorhus → Gulp Ruby Sass

sindresorhus / Gulp Ruby Sass

Licence: mit
Compile Sass to CSS with Ruby Sass

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Gulp Ruby Sass

gulp-rework
Preprocess CSS with Rework
Stars: ✭ 30 (-93.7%)
Mutual labels:  gulp-plugin, deprecated
Gulp Ftp
[DEPRECATED] Upload files to an FTP-server
Stars: ✭ 100 (-78.99%)
Mutual labels:  gulp-plugin, deprecated
Gulp Ngmin
[DEPRECATED] Pre-minify AngularJS apps with ngmin
Stars: ✭ 89 (-81.3%)
Mutual labels:  gulp-plugin, deprecated
Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (-71.43%)
Mutual labels:  gulp-plugin, sass
Gulp Compass
Compass plugin for gulp
Stars: ✭ 177 (-62.82%)
Mutual labels:  gulp-plugin, sass
Gulp Traceur
Traceur is a JavaScript.next to JavaScript-of-today compiler
Stars: ✭ 172 (-63.87%)
Mutual labels:  gulp-plugin, deprecated
Gulp Vulcanize
Concatenate a set of Web Components into one file
Stars: ✭ 101 (-78.78%)
Mutual labels:  gulp-plugin, deprecated
gulp-es6-transpiler
[DEPRECATED] Transpile ES2015 to ES5
Stars: ✭ 47 (-90.13%)
Mutual labels:  gulp-plugin, deprecated
gulp-recess
[DEPRECATED] Lint CSS and LESS with RECESS
Stars: ✭ 42 (-91.18%)
Mutual labels:  gulp-plugin, deprecated
Axe Cli
[Deprecated] A command-line interface for the aXe accessibility testing engine
Stars: ✭ 419 (-11.97%)
Mutual labels:  deprecated
Progress Tracker
A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.
Stars: ✭ 461 (-3.15%)
Mutual labels:  sass
Magento2 Frontools
Set of front-end tools for Magento 2 based on Gulp.js
Stars: ✭ 416 (-12.61%)
Mutual labels:  sass
Code Gov Web
DEPRECATED 🛑- Federal Source Code policy implementation.
Stars: ✭ 423 (-11.13%)
Mutual labels:  deprecated
Neumorphism Ui Bootstrap
Neumorphism inspired UI Kit: web components, sections and pages in neumorphic style built with Bootstrap CSS Framework
Stars: ✭ 463 (-2.73%)
Mutual labels:  sass
Piranha
[DEPRECATED] This is the legacy version of Piranha CMS for .NET 4.5, MVC 5.2 & WebPages 3.2.
Stars: ✭ 418 (-12.18%)
Mutual labels:  deprecated
Csshake
CSS classes to move your DOM!
Stars: ✭ 4,531 (+851.89%)
Mutual labels:  sass
Cc
一个基于angular5.0.0+ng-bootstrap1.0.0-beta.8+bootstrap4.0.0-beta.2+scss的后台管理系统界面(没基础的同学请先自学基础,谢谢!)
Stars: ✭ 416 (-12.61%)
Mutual labels:  sass
Fontisto
The iconic font and CSS toolkit. Fontisto gives you scalable vector icons that can instantly be customized: size, color, drop shadow and anything that can be done with the power of CSS.
Stars: ✭ 413 (-13.24%)
Mutual labels:  sass
Gulp Shell
A handy command line interface for gulp
Stars: ✭ 474 (-0.42%)
Mutual labels:  gulp-plugin
Django Knowledge
Add a help desk or knowledge base to your Django project with only a few lines of boilerplate code.
Stars: ✭ 473 (-0.63%)
Mutual labels:  deprecated

Deprecated

This project is deprecated because Ruby Sass is deprecated. Switch to gulp-sass.


gulp-ruby-sass Build Status

Compiles Sass with the Sass gem and pipes the results into a gulp stream.
To compile Sass with libsass, use gulp-sass

Install

$ npm install --save-dev gulp-ruby-sass

Requires Sass >=3.4.

Usage

sass(source, [options])

Use gulp-ruby-sass instead of gulp.src to compile Sass files.

const gulp = require('gulp');
const sass = require('gulp-ruby-sass');

gulp.task('sass', () =>
	sass('source/file.scss')
		.on('error', sass.logError)
		.pipe(gulp.dest('result'))
);

source

Type: string string[]

File or glob pattern (source/**/*.scss) to compile. Ignores files prefixed with an underscore. Directory sources are not supported.

options

Type: Object

Object containing plugin and Sass options.

bundleExec

Type: boolean
Default: false

Run Sass with bundle exec.

sourcemap

Type: boolean
Default: false

Initialize and pass Sass sourcemaps to gulp-sourcemaps. Note this option replaces Sass's sourcemap option.

const gulp = require('gulp');
const sass = require('gulp-ruby-sass');
const sourcemaps = require('gulp-sourcemaps');

gulp.task('sass', () =>
	sass('source/file.scss', {sourcemap: true})
		.on('error', sass.logError)
		// for inline sourcemaps
		.pipe(sourcemaps.write())
		// for file sourcemaps
		.pipe(sourcemaps.write('maps', {
			includeContent: false,
			sourceRoot: 'source'
		}))
		.pipe(gulp.dest('result'))
);
base

Type: string

Identical to gulp.src's base option.

tempDir

Type: string
Default: System temp directory

This plugin compiles Sass files to a temporary directory before pushing them through the stream. Use tempDir to choose an alternate directory if you aren't able to use the default OS temporary directory.

emitCompileError

Type: boolean
Default: false

Emit a gulp error when Sass compilation fails.

verbose

Type: boolean
Default: false

Log the spawned Sass or Bundler command. Useful for debugging.

Sass options

Any additional options are passed directly to the Sass executable. The options are camelCase versions of Sass's options parsed by dargs.

Run sass -h for a complete list of Sass options.

gulp.task('sass', () =>
	sass('source/file.scss', {
			precision: 6,
			stopOnError: true,
			cacheLocation: './',
			loadPath: [ 'library', '../../shared-components' ]
		})
		.on('error', sass.logError)
		.pipe(gulp.dest('result'))
);

sass.logError(err)

Convenience function for pretty error logging.

sass.clearCache([tempDir])

In rare cases you may need to clear gulp-ruby-sass's cache. This sync function deletes all files used for Sass caching. If you've set a custom temporary directory in your task you must pass it to clearCache.

Issues

This plugin wraps the Sass gem for the gulp build system. It does not alter Sass's output in any way. Any issues with Sass output should be reported to the Sass issue tracker.

Before submitting an issue please read the contributing guidelines.

License

MIT © Sindre Sorhus

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].