-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.coffee
51 lines (38 loc) · 1.04 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
module.exports = (grunt) ->
# prevent from throwing event listener warning
grunt.event.setMaxListeners( 50 )
# Project configuration
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
src:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:src" ]
# Tasks
coffee:
src:
expand: true
cwd: '_src',
src: ["**/*.coffee"]
dest: ''
ext: '.js'
mochacli:
options:
require: [ "should" ]
reporter: "spec"
bail: true
timeout: 300000
all: [ "tests/main.js" ]
# NPM MODULES
grunt.loadNpmTasks( "grunt-regarde" )
grunt.loadNpmTasks( "grunt-contrib-coffee" )
grunt.loadNpmTasks( "grunt-notify" )
grunt.loadNpmTasks( "grunt-mocha-cli" )
# Run on init
#grunt.task.run('notify_hooks')
# just a hack until this issue has been fixed: https://github.com/yeoman/grunt-regarde/issues/3
grunt.option( "force", not grunt.option( "force" ) )
# ALIAS TASKS
grunt.registerTask( "watch", "regarde" )
grunt.registerTask( "test", "mochacli" )
grunt.registerTask( "build", [ "coffee" ] )