Skip to content

Releases: t32k/stylestats

StyleStats v7.0.0

31 Dec 17:05
Compare
Choose a tag to compare

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

08 Feb 07:41
Compare
Choose a tag to compare
  • Accept gzipped contents 👍

StyleStats v6.2.0

18 Jan 07:34
Compare
Choose a tag to compare

New metrics

  • Added Total Unique Background Images metric.
  • Added Unique Background Images paths.

Fix bugs

  • Dose not count ID selector in attribute selectors. #124
  • Dose not count Universal selector in attribute selectors. #125

StyleStats v6.1.0

10 Jan 13:43
Compare
Choose a tag to compare

Changelog

  • Drop the compiling CSS preprocessors
    • Less
    • Stylus

It means StyleStats support only CSS files.

StyleStats v6.0.0

25 Sep 09:11
Compare
Choose a tag to compare

Changelog

  • Drop support Node.js v0.10
  • Recommend using Node.js v4.0+

StyleStats v5.1.0

07 Apr 22:40
Compare
Choose a tag to compare

New features

Fix bugs

  • Fixed calculating identifiers
  • Modified parse error message

More details: Release v5.1.0 by t32k · Pull Request #115

StyleStats 5.0.0

16 Feb 18:27
Compare
Choose a tag to compare

New features

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 is true 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

07 Feb 06:40
Compare
Choose a tag to compare
  • Added markdown output format in CLI.

EX.

$ stylestats foo.css --type md

StyleStats 4.2.0

30 Nov 08:04
Compare
Choose a tag to compare

StyleStats v4.0.0

08 Apr 15:26
Compare
Choose a tag to compare
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