Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
grunt-monty-python
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bb5a3b52
authored
2016-05-24 14:09:18 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Do the src/scripts fixup without regard to the value of withCoverage.
1 parent
b7140c57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
bb5a3b5
...
...
@@ -407,6 +407,20 @@ module.exports = function (grunt) {
baseUrl
:
mpConfig
.
base
+
'/scripts'
,
},
};
template
=
_
.
extend
({},
template
,
{
process
:
(
function
(
origProcess
)
{
return
function
process
(
grunt
,
task
,
context
)
{
var
src
=
[];
context
.
scripts
.
src
.
forEach
(
function
(
file
)
{
if
(
!
grunt
.
file
.
isMatch
(
specs
,
file
))
{
src
.
push
(
file
);
}
});
context
.
scripts
.
src
=
src
;
return
origProcess
.
apply
(
this
,
arguments
);
};
})(
template
.
process
),
});
if
(
mpConfig
.
jasmine
.
withCoverage
)
{
var
instrumentationCallback
=
function
instrumentationCallback
(
mpConfigBase
)
{
/* global requirejs:false */
...
...
@@ -448,20 +462,7 @@ module.exports = function (grunt) {
coverage
:
'dist/coverage/coverage.json'
,
report
:
'dist/coverage'
,
replace
:
false
,
template
:
_
.
extend
({},
template
,
{
process
:
(
function
(
origProcess
)
{
return
function
process
(
grunt
,
task
,
context
)
{
var
src
=
[];
context
.
scripts
.
src
.
forEach
(
function
(
file
)
{
if
(
!
grunt
.
file
.
isMatch
(
specs
,
file
))
{
src
.
push
(
file
);
}
});
context
.
scripts
.
src
=
src
;
return
origProcess
.
apply
(
this
,
arguments
);
};
})(
template
.
process
),
}),
template
:
template
,
templateOptions
:
templateOptions
,
files
:
_
.
concat
([],
src
,
specs
),
};
...
...
Please
register
or
sign in
to post a comment