Permalink
Browse files

Build: Add csslint and csscomb

Closes gh-8172
  • Loading branch information...
1 parent 1b2746f commit c651bdaa222a1b8764db7fa0aa955ba4c8a88862 @arschmitz arschmitz committed Jul 8, 2015
Showing with 64 additions and 0 deletions.
  1. +24 −0 .csscomb.json
  2. +20 −0 .csslintrc
  3. +1 −0 build/tasks/alias.js
  4. +11 −0 build/tasks/options/csscomb.js
  5. +6 −0 build/tasks/options/csslint.js
  6. +2 −0 package.json
View
@@ -0,0 +1,24 @@
+{
+ "remove-empty-rulesets": true,
+ "always-semicolon": true,
+ "color-case": "lower",
+ "block-indent": "\t",
+ "color-shorthand": true,
+ "element-case": "lower",
+ "eof-newline": true,
+ "leading-zero": false,
+ "quotes": "double",
+ "sort-order-fallback": "abc",
+ "space-before-colon": "",
+ "space-after-colon": " ",
+ "space-before-combinator": " ",
+ "space-after-combinator": " ",
+ "space-between-declarations": "\n",
+ "space-before-opening-brace": " ",
+ "space-after-opening-brace": "\n",
+ "space-after-selector-delimiter": "\n",
+ "space-before-selector-delimiter": "",
+ "space-before-closing-brace": "\n",
+ "strip-spaces": true,
+ "unitless-zero": true
+}
View
@@ -0,0 +1,20 @@
+{
+ "adjoining-classes": false,
+ "box-model": false,
+ "box-sizing": false,
+ "compatible-vendor-prefixes": false,
+ "duplicate-background-images": false,
+ "import": false,
+ "important": false,
+ "outline-none": false,
+ "overqualified-elements": false,
+ "text-indent": false,
+
+ // These are not ideal but needed for current theme
+ "qualified-headings": false,
+ "regex-selectors": false,
+ "unqualified-attributes": false,
+ "universal-selector": false,
+ "unique-headings": false,
+ "vendor-prefix": false
+}
@@ -30,6 +30,7 @@ grunt.registerTask( "build:js", [
] );
grunt.registerTask( "build:css", [
"cssbuild",
+ "csslint",
"cssmin"
] );
grunt.registerTask( "build:demos", [
@@ -0,0 +1,11 @@
+module.exports = {
+ structure: {
+ options: {
+ config: ".csscomb.json"
+ },
+ files: [{
+ expand: true,
+ src: [ 'css/structure/*.css' ]
+ }]
+ }
+};
@@ -0,0 +1,6 @@
+module.exports = {
+ options: {
+ csslintrc: ".csslintrc"
+ },
+ src: [ "css/**/*.css" ]
+};
View
@@ -36,11 +36,13 @@
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-connect": "0.3.0",
"grunt-contrib-copy": "0.4.1",
+ "grunt-contrib-csslint": "0.4.0",
"grunt-contrib-cssmin": "0.6.1",
"grunt-contrib-jshint": "0.6.3",
"grunt-contrib-requirejs": "0.4.1",
"grunt-contrib-uglify": "0.2.6",
"grunt-coveralls": "0.3.0",
+ "grunt-csscomb": "1.2.1",
"grunt-esformatter": "1.0.1",
"grunt-git-authors": "2.0.0",
"grunt-hash-manifest": "0.5.3",

0 comments on commit c651bda

Please sign in to comment.