Added CSSLINT
This commit is contained in:
11
Gruntfile.js
11
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']);
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user