forked from Hill30/NGScroller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
51 lines (44 loc) · 966 Bytes
/
Gruntfile.coffee
File metadata and controls
51 lines (44 loc) · 966 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Build configurations.
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-karma'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.initConfig
connect:
app:
options:
base: './src/'
middleware: require './server/middleware'
port: 5000
watch:
options:
livereload: false
karma:
unit:
options:
autoWatch: true
colors: true
configFile: './test/karma.conf.js'
keepalive: true
port: 8081
runnerPort: 9100
travis:
options:
colors: true
configFile: './test/karma.conf.js'
runnerPort: 9100
singleRun: true
# Starts a web server
# Enter the following command at the command line to execute this task:
# grunt server
grunt.registerTask 'server', [
'connect'
'watch'
]
grunt.registerTask 'default', ['server']
grunt.registerTask 'test', [
'karma:unit'
]
grunt.registerTask 'travis', [
'karma:travis'
]