UNPKG

747 Btext/coffeescriptView Raw
1module.exports = ->
2 # Project configuration
3 @initConfig
4 pkg: @file.readJSON 'package.json'
5
6 # CoffeeScript compilation
7 coffee:
8 src:
9 expand: true
10 cwd: 'src'
11 src: ['**.coffee']
12 dest: 'src'
13 ext: '.js'
14
15 # Automated recompilation and testing when developing
16 watch:
17 files: ['test/*.coffee', 'src/*.coffee']
18 tasks: ['test']
19
20 # FBP Network Protocol tests
21 exec:
22 fbp_test: 'fbp-test --colors'
23
24 # Grunt plugins used for testing
25 @loadNpmTasks 'grunt-contrib-coffee'
26 @loadNpmTasks 'grunt-contrib-watch'
27 @loadNpmTasks 'grunt-exec'
28
29 # Our local tasks
30 @registerTask 'build', ['coffee']
31 @registerTask 'test', ['exec']
32 @registerTask 'default', ['test']