Abdullah Almsaeed 9 rokov pred
rodič
commit
2827e4d2fb
2 zmenil súbory, kde vykonal 12 pridanie a 0 odobranie
  1. 11 0
      Gruntfile.js
  2. 1 0
      package.json

+ 11 - 0
Gruntfile.js

@@ -124,6 +124,15 @@ module.exports = function (grunt) {
       }
     },
     
+    csslint: {
+      options: {
+        csslintrc: 'build/less/.csslintrc'
+      },
+      dist: [
+        'dist/css/AdminLTE.css',
+      ]
+    },
+    
     // Delete images in build directory
     // After compressing the images in the build/img dir, there is no need
     // for them
@@ -148,6 +157,8 @@ module.exports = function (grunt) {
   grunt.loadNpmTasks('grunt-contrib-jshint');
   // Delete not needed files
   grunt.loadNpmTasks('grunt-contrib-clean');
+  // Lint CSS
+  grunt.loadNpmTasks('grunt-contrib-csslint');
 
   // The default task (running "grunt" in console) is "watch"
   grunt.registerTask('default', ['watch']);

+ 1 - 0
package.json

@@ -9,6 +9,7 @@
     "R2": "^1.4.3",
     "grunt": "~0.4.5",
     "grunt-contrib-clean": "^0.6.0",
+    "grunt-contrib-csslint": "^0.5.0",
     "grunt-contrib-cssmin": "^0.12.2",
     "grunt-contrib-jshint": "^0.11.2",
     "grunt-contrib-less": "^0.12.0",