forked from fullcalendar/fullcalendar-workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.coffee
79 lines (67 loc) · 2.05 KB
/
karma.conf.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = (config) ->
config.set
basePath: ''
frameworks: [ 'jasmine' ]
files: [
# dependencies for main lib
'node_modules/moment/moment.js'
'node_modules/jquery/dist/jquery.js'
'node_modules/components-jqueryui/jquery-ui.js'
'node_modules/components-jqueryui/themes/cupertino/jquery-ui.css'
'node_modules/fullcalendar/dist/fullcalendar.js'
'node_modules/fullcalendar/dist/fullcalendar.css'
# main lib files
'dist/scheduler.js'
'dist/scheduler.css'
# dependencies for tests
'node_modules/native-promise-only/lib/npo.src.js'
'node_modules/jasmine-jquery/lib/jasmine-jquery.js'
'node_modules/jasmine-fixture/dist/jasmine-fixture.js'
'node_modules/jquery-simulate/jquery.simulate.js'
'node_modules/jquery-mockjax/dist/jquery.mockjax.js'
'tests/util/base.css'
'tests/util/util.coffee'
'tests/util/util-more.js'
'tests/util/geom.coffee'
'tests/util/day-grid.coffee'
'tests/util/time-grid.coffee'
'tests/util/column.coffee'
'tests/util/timeline.coffee'
'tests/util/moment.js'
'tests/util/simulate.js'
'tests/util/ViewDateUtils.js'
'tests/*.coffee'
# serve misc files
{
included: false # don't immediately execute
nocache: true # don't let the webserver cache
pattern: 'tests/json/**/*' # data requested by tests
}
# serve misc files, but don't watch
{
included: false # don't immediately execute
nocache: true # don't let the webserver cache
watched: false # don't let changes trigger tests to restart
pattern: '{' + [
'dist' # for sourcemap files
'src' # for files referenced by sourcemaps
'node_modules' # 3rd party lib dependencies, like jquery-ui theme images
].join(',') + '}/**/*'
}
]
preprocessors:
'tests/**/*.coffee': [ 'coffee' ]
coffeePreprocessor:
options:
bare: true
sourceMap: true
transformPath: (path) ->
path.replace(/\.coffee$/, '.js')
customLaunchers:
PhantomJS_custom:
base: 'PhantomJS'
options:
viewportSize:
width: 1024
height: 768
reporters: [ 'dots' ]