3e9e2242 by Adam Heath

Start work on bower.

1 parent ed895a01
......@@ -286,6 +286,22 @@ module.exports = function (grunt) {
}
}
if (common.bower) {
externalMultiTask('bower', 'run bower externally', 'bower', function(target, options, configFile) {
return ['--config.directory=' + options.directory, target];
});
initConfig.bower = {
options: {
directory: 'src/' + common.bower.directory,
},
install: {},
update: {},
};
if (common.useRev) {
initConfig.rev.dist.files.push({src: 'dist/' + common.bower.directory});
}
}
buildList.push('useminPrepare'); // html
//buildList.push('usemin:views'
//buildList.push('requirejs'); // script
......