analyze-css

CSS selectors complexity and performance analyzer

BSD-2-CLAUSE License

Downloads
14.5K
Stars
695
Committers
10

Bot releases are visible (Hide)

analyze-css -

Published by macbre over 8 years ago

It's been a while since the last release of analyze-css. This one brings the following:

New metric

  • #108 - Detect minified / not minified CSS

Bug fixes

  • #111 - Fix parsing of gzipped distant files (by @gmetais)

Internals

  • #110 & #114 - Update dependencies
  • #113 - Travis: run tests using Node.js 4.3 and 5.6

Others

analyze-css -

Published by macbre about 9 years ago

  • 68ea7688f34252292e62304613d9ceab16a91702 - Update CSS prefixes data using autoprefixer-core v6.0.1
analyze-css -

Published by macbre about 9 years ago

  • #104 - Update dependencies (including CSS prefixes data)
analyze-css - v0.10.0

Published by macbre over 9 years ago

It's been a while since the last release. One new metric was added - average selectors length (#62).

analyze-css will now notify on accidental property resets (#85):

.foo {
  background-color: red;
  background: url(images/bg.gif) no-repeat top right;
}

will yield (via propertyResets metric offenders):

.foo: "background" resets "background-color" property set earlier

Enhancements

  • #62 - New metric: average selectors length
  • #84 - CSS parsing error handling
  • #85 - Detect accidental property resets
  • #98 - added position dump for unparsed selectors (by @mbardauskas)
  • #103 - Basic auth (by @gmetais)

Bug fixes

  • #88 - redundantChildNodesSelectors is missing tr-td and tr-th
  • #99 - Handle exceptions thrown during rules parsing

Internals

  • #81 - Use autoprefixer-core v5.0.0
  • #92 - prefixes: updated using autoprefixer-core v5.1.11
  • #93 - Use autoprefixer-core v5.2.0
  • #94 - Update npm dependencies
  • #101 - Upgrade css (v0.8.0) and node-sass (v3.2.0)
  • #102 - Travis: migrate to container-based infrastructure
analyze-css -

Published by macbre over 9 years ago

This minor release brings the updated node-sass dependency:

  • #89 - Update node-sass dependency version
analyze-css - v0.9.5

Published by macbre over 9 years ago

This minor release brings the updated data for browser-specific prefixes and up to date dependencies.

  • #86 - prefixes data updated using autoprefixer-core v5.1.7
analyze-css -

Published by macbre over 9 years ago

This minor release brings a bugfix

  • #83 - glob dependency broken in 0.9.3
analyze-css - v0.9.3

Published by macbre over 9 years ago

This minor release brings a bugfix:

  • #82 - Falsely redundant body > .foo .bar
analyze-css - v0.9.2

Published by macbre almost 10 years ago

This minor release brings the updated browser-specific prefixes metadata:

  • #81 - Use autoprefixer-core v5.0.0
analyze-css -

Published by macbre almost 10 years ago

This minor release brings the support of parsing SASS files with Indented Syntax.

  • #79 - Add support for parsing .sass files (not just .scss)
analyze-css - v0.9.0

Published by macbre almost 10 years ago

This release of analyze-css brings many "under the hood" changes. However, one new metric is introduced - the number of unique colors used in CSS (#68). Hopefully, it will be helpful for both developers and designers :)

analyze-css (when used to fetch remote CSS file) will now send user agent (see #75):

analyze-css/0.9.0 (node v0.10.4, linux x64)

The full list of changes

  • #78 - Metric cssMultiClassesSelectors is not documented (reported by @gmetais)
  • #75 - Send analyze-css user agent
  • #73 - Upgrade to autoprefixer-core v4.0.0
  • #72 - Introduce js-beautify
  • #70 - Upgrade npm dependencies
  • #68 - Number of unique colors used in CSS (new metric)
analyze-css - v0.8.0

Published by macbre almost 10 years ago

This release brings the detection of duplicated properties (especially useful when using CSS preprocessors) and command line / CommonJS module option to disabled offenders:

  • #64 - Command line option for disable offenders output (suggested by @xiaoxiachen)
  • #60 - Report duplicated properties
analyze-css - v0.7.0

Published by macbre almost 10 years ago

This release brings a better handling of errors and improved redundantChildNodesSelectors metric.

  • #58 - Improve errors handling
  • #57 - redundantChildNodesSelectors: skip selectors by (pseudo)attributes
  • #56 - Upgrade to autoprefixer v3.1.0
analyze-css - v0.6.0

Published by macbre about 10 years ago

This release brings a reporting of line and column of an issue reported in the offenders - se #25.

A new metric has been added - redundantChildNodesSelectors (see #51). It will report redundant selectors for child nodes, for instance .foo ul li.

There are two bug fixes to redundantBodySelectors metric - #49 and #51

Here's the full list of new features and bug fixes:

  • #25 - Report line and column of CSS "issue" in offenders
  • #49 - body not always redundant
  • #51 - Redundant selectors for child nodes (suggested by @gmetais)
  • #52 - @font-face interpreted as a duplicated selector
analyze-css - v0.5.0

Published by macbre about 10 years ago

This release brings an experimental support for analyzing SCSS files via libsass binding for Node.js (see #3),

Simply pass a *.scss file to analyze-css. SASS preprocessor will be used automatically (based on the file extension).

analyze-css --file examples/base.scss --pretty

Here's the full list of new features:

  • #3 - Add support for analyzing SASS files
  • #41 - Report CSS @import
  • #44 - Relax redundant body selector rule
  • #46 - Code coverage via instanbul
analyze-css - v0.4.1

Published by macbre about 10 years ago

This minor release brings updated npm dependencies and prefixes data from autoprefixer.

analyze-css - v0.4.0

Published by macbre over 10 years ago

Next release of analyze-css brings two new metrics:

  • #7 - Add number of "complex" selectors by attribute metric
  • #13 - Add multiple classes metric
analyze-css - v0.3.0

Published by macbre over 10 years ago

This release brings the following new, shiny features:

  • #8 - Report the use of expression
  • #9 - Report a redundant body selector
  • #23 - Report more old IE / Firefox specific hacks
  • #28 - Allow reading CSS from stdin
  • #31 - Tests improved
  • #32 - Update dependencies
  • #33 - Support media queries
  • #35 - Add --ignore-ssl-errors flag. (by @plasticine)
analyze-css - v0.2.0

Published by macbre almost 11 years ago

This release brings you the following:

  • #2 - Report outdated CSS prefixes
  • #4 - CSS Specificity (as suggested by @plasticine)
  • #5 - Add universal selector metric
  • #10 - Improve error reporting
  • #15 - Rules with comments should be treated as an empty ones
  • #17 - Report duplicated selectors
  • #18 - Report total length of base64-encoded data
analyze-css - First release

Published by macbre almost 11 years ago

First release of analyze-css, a tool used by phantomas for gathering CSS performance and complexity metrics.