-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
35 lines (28 loc) · 800 Bytes
/
Gruntfile.coffee
File metadata and controls
35 lines (28 loc) · 800 Bytes
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
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-codo'
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
'lib/index.js': 'src/index.coffee'
watch:
coffee:
files: [ 'src/index.coffee' ]
tasks: [ 'coffee' ]
mochaTest:
test:
options:
reporter: 'spec'
require: [
'coffee-script'
'babel/polyfill'
]
src: ['spec/**/*.coffee']
grunt.registerTask 'doc', ['codo']
grunt.registerTask 'test', ['mochaTest']
grunt.registerTask "compile", ["coffee"]
grunt.registerTask "default", ["compile"]