-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
47 lines (37 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
# Gruntfile.coffee for assets of com.kt3k.app.whatsmyip
module.exports = (g) ->
g.initConfig
jshint:
options:
jshintrc: '.jshintrc'
source: 'src/**/*.js'
test: 'spec/**/*.js'
jasmine:
options:
specs: 'spec/**/*.js'
vendor: [
'bower_components/jquery/jquery.min.js'
'bower_components/es6-promise/promise.min.js'
]
helpers: [
'bower_components/sinon-1.7.3.js/index.js'
'spec-helper/infrastructure.js'
]
app:
src: [
'src/domain/**/*.js'
]
'app-cov':
src: [
'src-cov/domain/**/*.js'
]
options:
helpers: [
'bower_components/sinon-1.7.3.js/index.js'
'spec-helper/infrastructure.js'
'node_modules/jasmine-jscoverage-reporter/reporter.js'
]
g.loadNpmTasks 'grunt-contrib-jshint'
g.loadNpmTasks 'grunt-contrib-jasmine'
g.registerTask 'test', ['jshint', 'jasmine:app']
g.registerTask 'default', ['test']