-
Notifications
You must be signed in to change notification settings - Fork 0
/
GruntFile.coffee
37 lines (32 loc) · 1003 Bytes
/
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
module.exports = (grunt) ->
# Project configuration
#
grunt.initConfig
coffee:
default:
files: [
expand: true # Enable dynamic expansion.
cwd: 'src/' # Src matches are relative to this path.
src: ['**/*.coffee'] # Actual pattern(s) to match.
dest: 'lib/' # Destination path prefix.
ext: '.js' # Dest filepaths will have this extension.
]
watch:
src:
files: ['src/**/*.coffee']
tasks: ['coffee']
mochaTest:
test:
options:
reporter: 'spec'
require: 'coffee-script'
src: [ 'test/**/*.js', "test/**/*.coffee" ]
# These plugins provide the necessary tasks
#
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-mocha-test'
# Default tasks
#
grunt.registerTask 'default', [ 'coffee' ]
grunt.registerTask 'test', [ 'coffee', 'mochaTest' ]