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
0e5fb378
authored
2015-09-03 12:03:42 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tmp
1 parent
b01d783a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
0e5fb37
...
...
@@ -39,7 +39,9 @@ module.exports = function (grunt) {
}]
},
},
rev
:
{
};
if
(
common
.
useRev
)
{
initConfig
.
rev
=
{
css
:
{
files
:
{
src
:
_
.
map
(
common
.
css
.
options
.
dirs
,
function
(
value
)
{
...
...
@@ -47,8 +49,8 @@ module.exports = function (grunt) {
}),
}
},
},
};
}
var
checkList
=
[];
var
buildList
=
[
'check'
,
...
...
@@ -119,6 +121,7 @@ module.exports = function (grunt) {
checkList
.
push
(
'htmlmin'
);
}
var
htmlSourceDir
;
if
(
common
.
punch
)
{
grunt
.
registerMultiTask
(
'punch'
,
'run punch externally to create html files'
,
function
()
{
var
done
=
this
.
async
();
...
...
@@ -161,15 +164,18 @@ module.exports = function (grunt) {
},
};
buildList
.
push
(
'punch:generate'
);
htmlSourceDir
=
'.grunt/holygrail/punch/output-generate'
;
initConfig
.
copy
.
dist
.
files
.
push
({
expand
:
true
,
dot
:
true
,
cwd
:
'.grunt/holygrail/punch/output-generate'
,
cwd
:
htmlSourceDir
,
dest
:
'dist'
,
src
:
[
'{,*/}*.html'
,
]
});
}
else
{
htmlSourceDir
=
'src'
;
}
if
(
true
)
{
...
...
@@ -181,7 +187,7 @@ module.exports = function (grunt) {
options
:
{
staging
:
'.grunt/usemin'
,
},
src
:
h
olyGrailTmp
+
'/punch/output-generate/
{,**/}*.html'
,
src
:
h
tmlSourceDir
+
'/!(scripts)
{,**/}*.html'
,
},
};
initConfig
.
usemin
=
{
...
...
@@ -242,7 +248,9 @@ module.exports = function (grunt) {
//'modernizr');
//buildList.push('uglify:generated'); // montyPython
//'rev:dist'); // montyPython
if
(
common
.
useRev
)
{
buildList
.
push
(
'rev:css'
);
// montyPython
}
//buildList.push('revconfig'); // montyPython
//buildList.push('uglify:bower'); // montyPython
//buildList.push('uglify:requireconfig'); // montyPython
...
...
Please
register
or
sign in
to post a comment