Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/1000ch/gulp-stylestats

Gulp task for StyleStats.
https://github.com/1000ch/gulp-stylestats

css gulp javascript stylesheet stylestats

Last synced: 20 days ago
JSON representation

Gulp task for StyleStats.

Awesome Lists containing this project

README

        

# [gulp-stylestats](https://npmjs.org/package/gulp-stylestats)

Gulp plugin for [StyleStats](http://github.com/t32k/stylestats).

[![Build Status](https://travis-ci.org/1000ch/gulp-stylestats.svg?branch=master)](https://travis-ci.org/1000ch/gulp-stylestats)
[![NPM version](https://badge.fury.io/js/gulp-stylestats.svg)](http://badge.fury.io/js/gulp-stylestats)
[![Dependency Status](https://david-dm.org/1000ch/gulp-stylestats.svg)](https://david-dm.org/1000ch/gulp-stylestats)
[![devDependency Status](https://david-dm.org/1000ch/gulp-stylestats/dev-status.svg)](https://david-dm.org/1000ch/gulp-stylestats#info=devDependencies)

## Install

Install via [npm](https://npmjs.org/package/gulp-stylestats):

```
npm install gulp-stylestats --save-dev
```

## Usage

This is `gulpfile.js` sample.

```js
const gulp = require('gulp');
const stylestats = require('gulp-stylestats');

gulp.task('stylestats', function () {
gulp.src('./fixtures/*.css')
.pipe(stylestats({
/* some stylestats options */
}));
});

gulp.task('default', ['stylestats']);
```

Output StyleStats data (sample: JSON format).

```js
const gulp = require('gulp');
const stylestats = require('gulp-stylestats');

gulp.task('stylestats', function () {
gulp.src('./fixtures/*.css')
.pipe(stylestats({
type: 'json',
outfile: true
/* and some stylestats options */
}))
.pipe(gulp.dest('./stats/'));
});

gulp.task('default', ['stylestats']);
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)