-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
40 lines (36 loc) · 1.05 KB
/
Gruntfile.coffee
File metadata and controls
40 lines (36 loc) · 1.05 KB
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
# Grunt configuration updated to latest Grunt. That means your minimum
# version necessary to run these tasks is Grunt 0.4.
#
# Please install this locally and install `grunt-cli` globally to run.
module.exports = (grunt) ->
# Initialize the configuration.
grunt.initConfig(
coffee:
default:
options:
bare: yes
files: {
'index.js': 'index.coffee'
'docs.js': 'docs.coffee'
'examples/example-api.js': 'examples/example-api.coffee'
'test/test-api.js': 'test/test-api.coffee'
}
client:
files: {
'clients/decl-api-client.js': 'clients/decl-api-client.coffee'
}
mochaTest:
test:
options: {
reporter: 'spec',
quiet: false,
clearRequireCache: false,
noFail: false
},
src: ['test/**/*.js']
)
# Load external Grunt task plugins.
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-mocha-test'
# Default task.
grunt.registerTask "default", ["coffee", "mochaTest"]