-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
29 lines (28 loc) · 939 Bytes
/
Gruntfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
coffee:
compile:
files:
'lib/imgcache.js': ['src/*.coffee']
nodeunit:
files: ['test/*.coffee'],
options:
reporter: 'default'
jshint:
files: ['lib/**/*.js']
exec:
debug:
command: 'node-debug --debug-brk $(which grunt) nodeunit'
clean:
command: 'rm -rf test/testcache'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-nodeunit'
grunt.loadNpmTasks 'grunt-contrib-jshint'
grunt.loadNpmTasks 'grunt-exec'
grunt.registerTask 'clean', ['exec:clean']
grunt.registerTask 'default', ['clean','coffee','nodeunit','jshint']
grunt.registerTask 'build', ['coffee']
grunt.registerTask 'test', ['clean','nodeunit','jshint']
grunt.registerTask 'debug', ['clean','coffee','exec:debug']
grunt.registerTask 'lint', ['jshint']