diff --git a/Gruntfile.js b/Gruntfile.js index 0ac7e7334..88ade36ae 100644 --- a/Gruntfile.js +++ b/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']); diff --git a/package.json b/package.json index 8afeaa4f4..cb6552d68 100644 --- a/package.json +++ b/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",