0e5fb378 by Adam Heath

tmp

1 parent b01d783a
......@@ -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: holyGrailTmp + '/punch/output-generate/{,**/}*.html',
src: htmlSourceDir + '/!(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
......