forked from imkevinxu/django-kevin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
replace.coffee
50 lines (46 loc) · 1.18 KB
/
replace.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
module.exports =
# General purpose text replacement for grunt
# https://github.com/yoniholmes/grunt-text-replace
stylesheets:
src: ['<%= paths.css %>/build/*.css.map']
overwrite: true
replacements: [
from: '<%= name %>/static'
to: '/static'
]
coverage:
src: ['<%= paths.tests %>/jasmine/coverage.html']
overwrite: true
replacements: [
from: '<div class="header high">'
to: '<div class="header high">
<h1>
<a href="/tests/jasmine" style="color: #000;">
Click here for Jasmine Tests
</a>
</h1>
'
]
specRunner:
src: ['<%= paths.tests %>/jasmine/index.html']
overwrite: true
replacements: [
{
from: '.grunt'
to: '../../.grunt'
}
{
from: '<%= name %>'
to: '../../<%= name %>'
}
{
from: '</body>'
to: '
<h1 style="font-family: Helvetica Neue; font-weight: 300;">
<a href="/tests/jasmine/coverage.html" style="color: #007069;">
Click here for JS Test Coverage
</a>
</h1></body>
'
}
]