-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathGruntfile.coffee
53 lines (43 loc) · 1.07 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
'use strict'
module.exports = (grunt) ->
pkg = grunt.file.readJSON 'package.json'
grunt.initConfig
coffeelint:
options:
configFile: 'coffeelint.json'
dist:
files:
src: [
'**/*.coffee'
'!node_modules/**'
]
jsonlint:
src: [
'package.json'
'coffeelint.json'
]
simplemocha:
options:
ui: 'bdd'
reporter: 'spec'
compilers: 'coffee:coffee-script'
ignoreLeaks: no
dist:
src: [ 'test/test_*.coffee' ]
watch:
options:
interrupt: yes
dist:
files: [
'**/*.{coffee,js,json}'
'!node_modules/**'
]
tasks: [ 'test' ]
release:
options:
tagName: 'v<%= version %>'
commitMessage: 'Prepare to release <%= version %>.'
grunt.registerTask 'test', [ 'jsonlint', 'coffeelint', 'simplemocha' ]
grunt.registerTask 'default', [ 'test', 'watch' ]
require 'coffee-errors'
require('matchdep').filterDev('grunt-*').forEach grunt.loadNpmTasks