forked from dudleycarr/nsqjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
56 lines (47 loc) · 1.24 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
"use strict"
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
coffee:
lib:
options:
bare: true
sourceMap: true
expand: true
src: ['src/**/*.coffee']
dest: 'dest'
ext: '.js'
test:
options:
bare: true
expand: true
src: ['test/**/*.coffee']
dest: 'test'
ext: '.js'
watch:
lib:
files: '<%= coffee.lib.src %>'
tasks: ['coffee:lib']
test:
files: [
'<%= coffee.src.src %>'
'<%= coffee.test.src %>'
]
tasks: ['coffee', 'test']
mochacli:
options:
require: ['coffee-errors']
reporter: 'spec'
colors: true
compilers: ['coffee:coffee-script']
all: ['./test/*.coffee']
coffeelint:
lib: ['*.coffee', 'src/*.coffee', 'test/*.coffee', 'examples/.*coffee']
# These plugins provide necessary tasks.
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-mocha-cli'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.registerTask 'default', ['watch']
grunt.registerTask 'test', ['mochacli']
grunt.registerTask 'lint', ['coffeelint']