StyleStats 5.0.0
New features
- Custom Templates : you can custom output format with handlebars template.
- CSS PefromanceTest : Including test specs file, you can use like a webpagetest-api test.
Acknowledgments:
Thanks to marcelduran/webpagetest-api, which has been a great source of inspiration.
Changelog
- Added
--template
option - Added
--specs
option - Added User Specified Selectors metric(default is
false
) - Changed
--type
option's name to--format
- Removed
--simple
option - Removed
--gzip
option,gzippedSize
value istrue
by default - Changed
--ua
option to--mobile
option. This UA is iOS 8 - Changed some metrics keys
uniqueFontFamily
->uniqueFontFamilies
uniqueColor
->uniqueColors
uniqueFontSize
->uniqueFontSizes
Default configuration:
New CLI info
$ stylestats --help
Usage: cli [options] <file ...>
Options:
-h, --help output usage information
-V, --version output the version number
-c, --config [path] set configurations
-f, --format [format] set the output format <json|html|md|csv>
-t, --template [path] set the template path for output formant
-s, --specs [path] run test with your test specs file
-n, --number show only numeral metrics
-m, --mobile set the mobile user agent
Usage
template:
$ stylestats path/to/example.css -t path/to/handlebars.hbs
test specs:
$ stylestats path/to/example.css -s path/to/testspecs.json
on Travis CI