-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.coffee
40 lines (37 loc) · 1.01 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
'use strict'
fs = require 'fs'
module.exports = (grunt) ->
grunt.initConfig
coffee:
options:
bare: true
sourceMap: true
dist:
files: [{
expand: true
cwd: 'source'
src: '*.coffee'
dest: 'lib'
ext: '.js'
}]
coffeelint:
files: [
'source/*.coffee'
'test/*.coffee'
'Gruntfile.coffee'
]
options: JSON.parse(fs.readFileSync('.coffeelint'))
mochaTest:
test:
options:
reporter: 'spec'
src: 'test/*.js'
grunt.registerTask 'dist', [
'coffeelint'
'coffee'
'mochaTest'
]
grunt.registerTask 'default', ['dist']
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-mocha-test'