Added CSSLINT

pull/489/merge
Abdullah Almsaeed 2015-07-25 15:51:57 -04:00
parent 0943d33ff3
commit 2827e4d2fb
2 changed files with 12 additions and 0 deletions

View File

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

View File

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