0.3.0 • Published 8 years ago

grunt-csstree-validator v0.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

grunt-csstree-validator

Grunt plugin for the CSS(Tree) Validator

CSS(Tree) Validator helps to validate your CSS code according to CSS rules.

dependencies Status Build Status Code Climate Known Vulnerabilities

Install

npm install grunt-csstree-validator --save-dev

or

yarn add grunt-csstree-validator --dev

Usage

module.exports = function( grunt ) {

    grunt.initConfig( {
        'csstree-validator': {
            files: [ 'test/src/app.css', 'test/src/main.css' ]
        }
    } );

    grunt.loadNpmTasks( 'grunt-optimize-js' );

    grunt.registerTask( 'default', [ 'csstree-validator' ] );

};

files is an array with CSS file paths to validate. A single CSS file as a string is also possible.

Why

Ideally suited for the pre-commit hook.

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago