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
f7be81d6
authored
2015-10-02 10:09:37 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add more conditionals around buildList targets.
1 parent
70513966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
f7be81d
...
...
@@ -565,7 +565,9 @@ module.exports = function (grunt) {
if
(
mpConfig
.
bower
)
{
buildList
.
push
(
'requirejs'
);
// script
}
buildList
.
push
(
'copy:css'
);
// css
if
(
mpConfig
.
css
)
{
buildList
.
push
(
'copy:css'
);
// css
}
if
(
mpConfig
.
images
)
{
var
minify
=
mpConfig
.
images
.
options
.
minify
;
if
(
minify
===
undefined
||
minify
)
{
...
...
@@ -579,8 +581,12 @@ module.exports = function (grunt) {
}
}
//buildList.push('autoprefixer'); // css
buildList
.
push
(
'concat:generated'
);
// montyPython
buildList
.
push
(
'cssmin'
);
// montyPython
if
(
mpConfig
.
punch
)
{
buildList
.
push
(
'concat:generated'
);
// montyPython
}
if
(
mpConfig
.
css
)
{
buildList
.
push
(
'cssmin'
);
// montyPython
}
//'uglify:dist');
buildList
.
push
(
'copy:dist'
);
//'modernizr');
...
...
@@ -589,7 +595,9 @@ module.exports = function (grunt) {
}
if
(
mpConfig
.
useRev
)
{
buildList
.
push
(
'rev:dist'
);
// montyPython
buildList
.
push
(
'rev:css'
);
// montyPython
if
(
mpConfig
.
css
)
{
buildList
.
push
(
'rev:css'
);
// montyPython
}
}
buildList
.
push
(
'fixRequireConfig'
);
if
(
mpConfig
.
bower
)
{
...
...
@@ -602,7 +610,9 @@ module.exports = function (grunt) {
buildList
.
push
(
'uglify:montyPython'
);
// montyPython
}
buildList
.
push
(
'usemin:html'
);
// montyPython
buildList
.
push
(
'usemin:css'
);
// montyPython
if
(
mpConfig
.
css
)
{
buildList
.
push
(
'usemin:css'
);
// montyPython
}
buildList
.
push
(
'htmlmin'
);
// montyPython
buildList
.
push
(
'deploy'
);
// montyPython
...
...
Please
register
or
sign in
to post a comment