Releases: t32k/stylestats
Releases · t32k/stylestats
StyleStats v7.0.0
Happy New Year 2017 🎉
- No longer support Node.js v4.x, use v6.0+
- Convert callback APIs to promises(StyleStats#parse())
- Drop test specs feature
- Drop Handlebars(no longer support custom/markdown/html formats)
- Add prettify flag and function #106
- Rewrite some code in ES6
- Update module dependencies
- Use ava test runner instead of mocha
StyleStats v6.3.0
- Accept gzipped contents 👍
StyleStats v6.2.0
StyleStats v6.1.0
Changelog
- Drop the compiling CSS preprocessors
- Less
- Stylus
It means StyleStats support only CSS files.
StyleStats v6.0.0
Changelog
- Drop support Node.js v0.10
- Recommend using Node.js v4.0+
StyleStats v5.1.0
New features
- Average of Identifier metic
- Average of Cohesion metic
- Plot with Google Analytics
Fix bugs
- Fixed calculating identifiers
- Modified parse error message
More details: Release v5.1.0 by t32k · Pull Request #115
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
More information
StyleStats 4.3.0
- Added markdown output format in CLI.
EX.
$ stylestats foo.css --type md
StyleStats 4.2.0
Add totalUniqueFontFamilies
, uniqueFontFamily
metics.
StyleStats v4.0.0
var StyleStats = require('stylestats');
var stats = new StyleStats('path/to/stylesheet.css');
// parse function's first argument is error, second argument is result.
stats.parse(function (error, result) {
console.log(JSON.stringify(result, null, 2));
});
- Change promise func
- Update parse function arguments
- Add tests
- Fix cli.js
- Add chalk module
- Replace jade with undescore's template
- Delete underscore.string
- Add error handling
- Release v4.0.0