Add less lint task

This commit is contained in:
Kevin Sawicki 2013-06-12 09:57:58 -07:00
parent 1156018c0d
commit 43c1d7f8aa
2 changed files with 15 additions and 1 deletions

View File

@ -121,7 +121,12 @@ module.exports = (grunt) ->
csslint:
options:
'adjoining-classes': false
'box-sizing': false
'bulletproof-font-face': false
'compatible-vendor-prefixes': false
'fallback-colors': false
'gradients': false
'important': false
'vendor-prefix': false
src: [
'src/**/*.css',
@ -129,7 +134,15 @@ module.exports = (grunt) ->
'themes/**/*.css'
]
lesslint:
src: [
'src/**/*.less',
'static/**/*.less'
'themes/**/*.less'
]
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-lesslint')
grunt.loadNpmTasks('grunt-contrib-csslint')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-less')
@ -242,6 +255,6 @@ module.exports = (grunt) ->
grunt.util.async.waterfall commands, (error) -> done(!error?)
grunt.registerTask('compile', ['coffee', 'less', 'cson'])
grunt.registerTask('lint', ['coffeelint', 'csslint'])
grunt.registerTask('lint', ['coffeelint', 'csslint', 'lesslint'])
grunt.registerTask('ci', ['clean', 'bootstrap', 'build', 'test'])
grunt.registerTask('default', ['lint', 'build'])

View File

@ -70,6 +70,7 @@
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-coffeelint": "0.0.6",
"grunt-lesslint": "0.1.0",
"grunt-contrib-csslint": "~0.1.2",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-less": "~0.5.2"