19 lines
462 B
CoffeeScript
19 lines
462 B
CoffeeScript
module.exports = (grunt) ->
|
|
@loadNpmTasks('grunt-contrib-jshint')
|
|
@loadNpmTasks('grunt-contrib-watch')
|
|
|
|
@initConfig
|
|
jshint:
|
|
all: [ 'lib/*.js' ]
|
|
options:
|
|
jshintrc: '.jshintrc'
|
|
|
|
watch:
|
|
all:
|
|
files: ['lib/**.js', 'test/*/*']
|
|
tasks: ['test']
|
|
|
|
@registerTask 'default', ['test']
|
|
@registerTask 'build', ['jshint']
|
|
@registerTask 'test', ['build']
|