gulp-parker2
v0.1.3
Published
Gulp plugin for parker, a stylesheet analysis tool
Downloads
20
Readme
gulp-parker2
Gulp plugin for Parker, a stylesheet analysis tool.
Install
npm install --save-dev gulp-parker2
NOTE: Since
gulp-parker
were already taken, I had to rename my plugin togulp-parker2
.
Usage
var gulp = require('gulp');
var parker = require('gulp-parker2');
gulp.task('parker', function() {
return gulp.src('./css/*.css')
.pipe(parker());
});
Options are passed into parker()
as an object and will be passed to parker aswell.
Options
metrics: array
Default: All
Define a range of metrics you'd like to run. See a list of available metrics for Parker
format: string
Default: json
Define which format the results should be printed in. Currently supported:
- json
- human
- object (will not print, used to e.g. pipe)
Todos
- --Defining custom metrics--
- Defining custom formats
- --Proper error checking--
- Implement latest Parker features
Contributing
You can pitch in by submitting issues and pull requests. But before you do so, make sure it is specific to this wrapper, otherwise report issues at Parker's issue tracker.