0.0.3 • Published 9 years ago

grunt-css-analysis v0.0.3

Weekly downloads
23
License
-
Repository
github
Last release
9 years ago

Synopsis

Run analyze-css against CSS files, generating standard-format reports.

Code Example

grunt.loadNpmTasks('grunt-css-analysis');
 
grunt.initConfig({

  cssanalysis : {
    css: {
      files : [{ cwd: '.', src: ['/**/*.css'], expand : true}],
      exclude: [],
      options: {
        fail: true, //default
        failOn: 'error', //default
        thresholds: {
            error: 0.5, // error threshold, default 0.5
            warning: 0.75 //warning thredshold, default 0.75
        },    
        pmdXML: '/pmd.xml'
        cssanalyze: {
            // cssanalyse options here
        }
      }
    }
  };
  
});

Motivation

This project is based on the excellent analyze-css and its associated grunt task grunt-analyze-css.

This task does nothing more than run analyze-css, but creates reports in a number of standard XML formats using violation-reporter for consumption by jenkins various plugins.

Installation

npm install grunt-css-analysis

Contributors

Stuart Campbell (campbes)

License

Released under the MIT License