<commit_before>#gulp-stylus
[![Build Status](https://travis-ci.org/stevelacy/gulp-stylus.png?branch=master)](https://travis-ci.org/stevelacy/gulp-stylus)
[![NPM version](https://badge.fury.io/js/gulp-stylus.png)](http://badge.fury.io/js/gulp-stylus)

> Compile [Stylus](http://learnboost.github.io/stylus/) with gulp (gulpjs.com)

## Information

<table>
<tr>
<td>Package</td><td>gulp-stylus</td>
</tr>
<tr>
<td>Description</td>
<td>Stylus plugin for Gulp</td>
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.9</td>
</tr>
<tr>
<td>Gulp Version</td>
<td>3.x</td>
</tr>
</table>

## Usage
#### Install
		npm install gulp-stylus --save

## Examples

```javascript

// Gulpfile.js
// Require the needed packages
var gulp = require('gulp');
var stylus = require('gulp-stylus');


// Get one .styl file and render
gulp.task('one', function () {
	gulp.src('./css/one.styl')
		.pipe(stylus({
			paths: ["/home/stylus-plugins/"], // only needed in special cases,
			set:['compress']
		}))
		.pipe(gulp.dest('./css'));
});


// Get all .styl files in one folder and render
gulp.task('one', function () {
	gulp.src('./css/blue/*.styl')
		.pipe(stylus())
		.pipe(gulp.dest('./css/blue'));
});



// Get and render all .styl files recursively
gulp.task('stylus', function () {
	gulp.src('./css/**/*.styl')
		.pipe(stylus())
		.pipe(gulp.dest('./css'));
});


// Stylus.use options:
// Use nib
gulp.task('nib', function () {
	gulp.src('./css/nib/*.styl')
		.pipe(stylus({use: ['nib']}))
		.pipe(gulp.dest('./css/'));
});

// Note: 'import:' Is Needed after 0.1.0
// nib usage
gulp.task('nib', function () {
	gulp.src('./css/nib/*.styl')
		.pipe(stylus({
			use: ['nib'],
			import: ['nib']
			}))
		.pipe(gulp.dest('./css/'));
});


// Stylus.set options:
// Option compress
gulp.task('compress', function () {
	gulp.src('./css/compressed/*.styl')
		.pipe(stylus({set:['compress']}))
		.pipe(gulp.dest('./css/compressed'));
});

// Option linenos
gulp.task('linenos', function () {
	gulp.src('./css/linenos/*.styl')
		.pipe(stylus({set:['linenos']}))
		.pipe(gulp.dest('./css/linenos'));
});

// Option "resolve url" (same as "--resolve-url" in CLI)
gulp.task('resolve-url', function () {
	gulp.src('./css/resolve/*.styl')
		.pipe(stylus({set:['resolve url']}))
		.pipe(gulp.dest('./css/resolved'));
});

// Option import file
gulp.task('import', function () {
	gulp.src('./css/test.styl')
		.pipe(stylus({import: ['./one.styl']})) // the file is Relative to the Other styl files
		.pipe(gulp.dest('./css/import'));
});

// Option urlFunc - inline images
gulp.task('urlfunc', function(){
	gulp.src('./css/urlfunc.styl')
	.pipe(stylus({urlFunc: ['inline-image']}))<commit_msg>include css example<commit_after>#gulp-stylus
[![Build Status](https://travis-ci.org/stevelacy/gulp-stylus.png?branch=master)](https://travis-ci.org/stevelacy/gulp-stylus)
[![NPM version](https://badge.fury.io/js/gulp-stylus.png)](http://badge.fury.io/js/gulp-stylus)

> Compile [Stylus](http://learnboost.github.io/stylus/) with gulp (gulpjs.com)

## Information

<table>
<tr>
<td>Package</td><td>gulp-stylus</td>
</tr>
<tr>
<td>Description</td>
<td>Stylus plugin for Gulp</td>
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.9</td>
</tr>
<tr>
<td>Gulp Version</td>
<td>3.x</td>
</tr>
</table>

## Usage
#### Install
		npm install gulp-stylus --save

## Examples

```javascript

// Gulpfile.js
// Require the needed packages
var gulp = require('gulp');
var stylus = require('gulp-stylus');


// Get one .styl file and render
gulp.task('one', function () {
	gulp.src('./css/one.styl')
		.pipe(stylus({
			paths: ["/home/stylus-plugins/"], // only needed in special cases,
			set:['compress']
		}))
		.pipe(gulp.dest('./css'));
});


// Get all .styl files in one folder and render
gulp.task('one', function () {
	gulp.src('./css/blue/*.styl')
		.pipe(stylus())
		.pipe(gulp.dest('./css/blue'));
});



// Get and render all .styl files recursively
gulp.task('stylus', function () {
	gulp.src('./css/**/*.styl')
		.pipe(stylus())
		.pipe(gulp.dest('./css'));
});


// Stylus.use options:
// Use nib
gulp.task('nib', function () {
	gulp.src('./css/nib/*.styl')
		.pipe(stylus({use: ['nib']}))
		.pipe(gulp.dest('./css/'));
});

// Note: 'import:' Is Needed after 0.1.0
// nib usage
gulp.task('nib', function () {
	gulp.src('./css/nib/*.styl')
		.pipe(stylus({
			use: ['nib'],
			import: ['nib']
			}))
		.pipe(gulp.dest('./css/'));
});


// Stylus.set options:
// Option compress
gulp.task('compress', function () {
	gulp.src('./css/compressed/*.styl')
		.pipe(stylus({set:['compress']}))
		.pipe(gulp.dest('./css/compressed'));
});

// Option linenos
gulp.task('linenos', function () {
	gulp.src('./css/linenos/*.styl')
		.pipe(stylus({set:['linenos']}))
		.pipe(gulp.dest('./css/linenos'));
});

// Option "include css" (same as "--include-css" in CLI)
gulp.task('includecss', function () {
	gulp.src('./css/includecss/*.styl')
		.pipe(stylus({set:['include css']}))
		.pipe(gulp.dest('./css/includecss'));
});

// Option "resolve url" (same as "--resolve-url" in CLI)
gulp.task('resolve-url', function () {
	gulp.src('./css/resolve/*.styl')
		.pipe(stylus({set:['resolve url']}))
		.pipe(gulp.dest('./css/resolved'));
});

// Option import file
gulp.task('import', function () {
	gulp.src('./css/test.styl')
		.pipe(stylus({import: ['./one.styl']})) // the file is Relative to the Other styl files
		.pipe(gulp.dest('./css/import'));
});

// Option urlFunc - inline images
gulp.task('urlfunc', function(){
	gulp.src('./css/urlfunc.styl')
	.pipe(stylus({urlFunc: ['inline-image']}))
{'fraction_non_alphanumeric': 0.2554229934924078, 'fraction_numerical': 0.0021691973969631237, 'mean_word_length': 3.7739430543572046, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 59, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1709277', 'n_tokens_mistral': 2336, 'n_tokens_neox': 2234, 'n_words': 379}