mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Add less lint task
This commit is contained in:
parent
1156018c0d
commit
43c1d7f8aa
@ -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'])
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user