-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
executable file
·38 lines (30 loc) · 999 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
30
31
32
33
34
35
36
37
38
module.exports = (grunt) ->
grunt.initConfig
watch:
coffeelint:
files: ['src/**/*.coffee', 'test/**/*.coffee', 'Gruntfile.coffee']
tasks: ['coffeelint']
test:
files: ['src/**/*.coffee', 'test/**/*.coffee', 'Gruntfile.coffee']
tasks: ['mochaTest']
coffeelint:
app: ['src/**/*.coffee', 'test/**/*.coffee', 'Gruntfile.coffee']
options:
configFile: 'coffeelint.json'
mochaTest:
test:
options:
reporter: 'spec',
require: 'coffee-script/register'
bail: true
src: ['test/**/*.coffee']
shell:
coffee:
command: 'node_modules/coffee-script/bin/coffee --output lib src'
publish:
command: 'cp package.json lib/uval; cp README.md lib/uval; ' +
'(cd lib/uval; npm publish);'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.loadNpmTasks 'grunt-shell'