0.1.4 • Published 10 years ago

grunt-csspec v0.1.4

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

Grunt-CSSpec

Grunt adapter for CSSpec test compilation.

npm install grunt-csspec --save-dev

For CSSpec see: https://www.npmjs.com/package/csspec and https://github.com/cjkula/csspec

Sample Grunt configuration:

grunt.initConfig({

  pkg: grunt.file.readJSON('package.json'),

  csspec: {
    dev: {
      files: {
        'test-suite.sass' : 'test-suite.csspec'
      }
    }
  },

  sass: {
    dev: {
      ...
      files: {
        ...
        'test-suite.css' : 'test-suite.sass'
      }
    }
  },

  watch: {
    sass: {
      files: [
        'app/sass/{,*/}*.{scss,sass}'
      ],
      tasks: ['sass:dev']
    },
    csspec: {
      files: [
        'css-tests/*.csspec'
      ],
      tasks: ['csspec:dev', 'sass:dev']
    }
  }

});

grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-csspec');

Note that SASS compilation is not currently bundled into the preprocessor and so needs to be run after the csspec task to generate the test stylesheet.

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago