forked from processing/p5.js
-
Notifications
You must be signed in to change notification settings - Fork 11
/
grunt-karma.js
66 lines (66 loc) · 1.62 KB
/
grunt-karma.js
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
/**
* This is the grunt config for karma. It is in it's own file because the
* list of benchmark targets could grow large over time as we add benchmarks
* for p5 functions. Benchmarks are separated so you can run specific
* benchmarks when developing for speed.
*/
module.exports = {
options: {
configFile: 'karma.conf.js'
},
'random-fe-on-prod': {
options: {
files: [
'https://cdnjs.cloudflare.com/ajax/libs/p5.js/<%= pkg.version %>/p5.js',
'bench/math/random-fe-on.bench.js'
]
}
},
'random-fe-on-prod-min': {
options: {
files: [
'https://cdnjs.cloudflare.com/ajax/libs/p5.js/<%= pkg.version %>/p5.min.js',
'bench/math/random-fe-on.bench.js'
]
}
},
'sin-prod': {
options: {
files: [
'https://cdnjs.cloudflare.com/ajax/libs/p5.js/<%= pkg.version %>/p5.js',
'bench/math/sin.bench.js'
]
}
},
'sin-dev': {
options: {
files: ['lib/p5.js', 'bench/math/sin.bench.js']
}
},
'random-fe-on-dev': {
options: {
files: ['lib/p5.js', 'bench/math/random-fe-on.bench.js']
}
},
'random-fe-off-prod': {
options: {
files: [
'https://cdnjs.cloudflare.com/ajax/libs/p5.js/<%= pkg.version %>/p5.js',
'bench/math/random-fe-off.bench.js'
]
}
},
'random-fe-off-prod-min': {
options: {
files: [
'https://cdnjs.cloudflare.com/ajax/libs/p5.js/<%= pkg.version %>/p5.min.js',
'bench/math/random-fe-off.bench.js'
]
}
},
'random-fe-off-dev': {
options: {
files: ['lib/p5.js', 'bench/math/random-fe-off.bench.js']
}
}
};