-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
33 lines (27 loc) · 978 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
Path = require 'path'
module.exports = (grunt)->
require('grunt-recurse')(grunt, __dirname)
grunt.NpmTasks = 'grunt-release'
[
['.', 'src', 'features']
]
.map((dir)->Path.join.apply null, dir)
.map(grunt.grunt)
grunt.initConfig grunt.Config
grunt.loadNpmTasks task for task in grunt.NpmTasks
grunt.registerTask 'serve', ->
http = require('http').createServer()
http.on 'request', (req, res)->
res.writeHead(200, { 'Content-Type': 'text/html'})
res.write '''<html>
<head><title>qcumberbatch</title></head>
<body></body>
</html>
'''
res.end()
http.listen 3000
grunt.loadTasks 'src/tasks'
grunt.loadTasks 'tasks'
grunt.registerTask 'browserstack', ['serve', 'cucumber:browserstack']
grunt.registerTask 'test', ['serve', 'integration']
grunt.registerTask 'default', ['test', 'documentation']