generator-linda
Version:
Yeoman generator for Linda. Generate hubot-like workers set.
61 lines (51 loc) • 1.33 kB
text/coffeescript
module.exports = (grunt) ->
require 'coffee-errors'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-jsonlint'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.loadNpmTasks 'grunt-notify'
grunt.registerTask 'test', [ 'jsonlint', 'coffeelint', 'simplemocha' ]
grunt.registerTask 'default', [ 'test', 'watch' ]
grunt.initConfig
jsonlint:
config:
src: [
'*.json'
]
coffeelint:
options:
max_line_length:
value: 120
indentation:
value: 2
newlines_after_classes:
level: 'error'
no_empty_param_list:
level: 'error'
no_unnecessary_fat_arrows:
level: 'ignore'
dist:
files: [
{ expand: yes, cwd: 'scripts/', src: [ '*.coffee' ] }
{ expand: yes, cwd: 'tests/', src: [ '*.coffee' ] }
]
simplemocha:
options:
ui: 'bdd'
reporter: 'spec'
compilers: 'coffee:coffee-script'
ignoreLeaks: no
dist:
src: [ 'tests/test_*.coffee' ]
watch:
options:
interrupt: yes
dist:
files: [
'*.coffee'
'scripts/*.coffee'
'tests/*.coffee'
]
tasks: [ 'test' ]