-
Notifications
You must be signed in to change notification settings - Fork 25
/
gruntfile.coffee
59 lines (50 loc) · 2.12 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'use strict';
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
source: ['src/**/*.coffee', 'test/**/*.coffee', 'gruntfile.coffee'],
nodeunit:
all: ['test/**/*_test.js']
coffee:
compile:
files:
'lib/viff.js': 'src/viff.coffee',
'lib/comparison.js': 'src/comparison.coffee',
'lib/index.js': 'src/index.coffee',
'lib/index.stream.js': 'src/index.stream.coffee',
'lib/index.server.js': 'src/index.server.coffee',
'lib/color.helper.js': 'src/color.helper.coffee',
'lib/process.argv.js': 'src/process.argv.coffee',
'lib/image.generator.js': 'src/image.generator.coffee',
'lib/console.status.js': 'src/console.status.coffee',
'lib/node.eval.js': 'src/node.eval.coffee',
'lib/testcase.js': 'src/testcase.coffee',
'lib/capability.js': 'src/capability.coffee',
'lib/resemble.js': 'src/resemble.coffee',
'lib/canvas.drawimage.js': 'src/canvas.drawimage.coffee',
'lib/image.dataurl.helper.js': 'src/image.dataurl.helper.coffee',
'test/build/comparison_test.js': 'test/src/comparison_test.coffee',
'test/build/viff.spec.js': 'test/src/viff.spec.coffee',
'test/build/process.argv.spec.js': 'test/src/process.argv.spec.coffee',
'test/build/image_generator_test.js': 'test/src/image_generator_test.coffee',
'test/build/testcase_test.js': 'test/src/testcase_test.coffee',
'test/build/capability.spec.js': 'test/src/capability.spec.coffee'
watch:
coffee:
files: '<%= source %>'
tasks: ['coffee']
nodeunit:
files: '<%= source %>'
tasks: ['default']
mochaTest:
test:
options:
reporter: 'spec'
src: ['test/**/*.js']
# These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-mocha-test');
# Default task.
grunt.registerTask('default', ['coffee', 'nodeunit', 'mochaTest']);