hubot-weirdmeetup-blog
Version:
Hubot WeirdMeetup Blog Reader
53 lines (44 loc) • 1.1 kB
text/coffeescript
module.exports = (grunt) ->
require 'coffee-errors'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-simple-mocha'
grunt.registerTask 'test', [ 'coffeelint', 'simplemocha' ]
grunt.registerTask 'default', [ 'test', 'watch' ]
grunt.initConfig
coffeelint:
options:
max_line_length:
value: 119
indentation:
value: 2
newlines_after_classes:
level: 'error'
no_empty_param_list:
level: 'error'
no_unnecessary_fat_arrows:
level: 'ignore'
dist:
files:
src: [
'**/*.coffee'
'!node_modules/**'
]
simplemocha:
options:
ui: 'bdd'
reporter: 'spec'
compilers: 'coffee:coffee-script'
ignoreLeaks: no
dist:
src: [ 'tests/*.coffee' ]
watch:
options:
interrupt: yes
dist:
files: [
'**/*.{coffee,js}'
'!node_modules/**'
]
tasks: [ 'test' ]