Browse Source

Add CSSLint support.

pull/431/head
XhmikosR 11 years ago
parent
commit
21f8d5c91e
  1. 19
      Gruntfile.js
  2. 1
      package.json
  3. 15
      sass/.csslintrc

19
Gruntfile.js

@ -107,7 +107,7 @@ module.exports = function(grunt) {
theme: {
files: {
'<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.min.css': '<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.css',
'<%= meta.distPath %>css/<%= pkg.name %>-theme-android.min.css' : '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.css'
'<%= meta.distPath %>css/<%= pkg.name %>-theme-android.min.css': '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.css'
}
},
docs: {
@ -168,6 +168,23 @@ module.exports = function(grunt) {
}
},
csslint: {
options: {
csslintrc: 'sass/.csslintrc'
},
src: [
'dist/css/<%= pkg.name %>.css',
'dist/css/<%= pkg.name %>-theme-android.css',
'dist/css/<%= pkg.name %>-theme-ios.css'
],
docs: {
options: {
'ids': false
},
src: ['docs/assets/css/docs.css']
}
},
validation: {
options: {
charset: 'utf-8',

1
package.json

@ -29,6 +29,7 @@
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-csslint": "~0.2.0",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-nodeunit": "~0.3.2",

15
sass/.csslintrc

@ -0,0 +1,15 @@
{
"adjoining-classes": false,
"box-sizing": false,
"box-model": false,
"compatible-vendor-prefixes": false,
"fallback-colors": false,
"font-sizes": false,
"important": false,
"known-properties": false,
"outline-none": false,
"qualified-headings": false,
"unique-headings": false,
"universal-selector": false,
"unqualified-attributes": false
}
Loading…
Cancel
Save