Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/1000ch/gulp-stylestats
- Owner: 1000ch
- Created: 2014-03-17T08:46:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T07:27:38.000Z (over 6 years ago)
- Last Synced: 2024-10-17T12:09:41.739Z (30 days ago)
- Topics: css, gulp, javascript, stylesheet, stylestats
- Language: JavaScript
- Homepage: https://npmjs.org/package/gulp-stylestats
- Size: 122 KB
- Stars: 60
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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)