2013-05-29 04:30:09 +04:00
|
|
|
module.exports = (grunt) ->
|
|
|
|
grunt.initConfig
|
|
|
|
pkg: grunt.file.readJSON('package.json')
|
|
|
|
|
|
|
|
coffeelint:
|
|
|
|
options:
|
|
|
|
max_line_length:
|
|
|
|
level: 'ignore'
|
|
|
|
|
|
|
|
src: ['src/**/*.coffee']
|
2013-05-29 22:50:53 +04:00
|
|
|
test: [
|
|
|
|
'spec/*.coffee'
|
|
|
|
'spec/app/**/*.coffee'
|
|
|
|
'spec/stdlib/**/*.coffee'
|
|
|
|
]
|
2013-05-29 04:30:09 +04:00
|
|
|
|
2013-05-29 23:13:47 +04:00
|
|
|
csslint:
|
|
|
|
options:
|
|
|
|
'adjoining-classes': false
|
|
|
|
'fallback-colors': false
|
|
|
|
src: ['themes/**/*.css', 'src/**/*.css']
|
2013-05-29 04:30:09 +04:00
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-coffeelint')
|
2013-05-29 23:13:47 +04:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-csslint')
|
2013-05-29 04:30:09 +04:00
|
|
|
|
2013-05-29 23:13:47 +04:00
|
|
|
grunt.registerTask('lint', ['coffeelint:src', 'coffeelint:test', 'csslint:src'])
|
2013-05-29 04:30:09 +04:00
|
|
|
grunt.registerTask('default', 'lint')
|