feat(benchmarks): add polymer js 0.8-preview benchmark

Limitations because of preview status (see #960):

- does not yet use ShadowDOM
- does not use a builtin conditional like `if`
- uses a temporary bower repository

Closes #943
This commit is contained in:
Jacob MacDonald
2015-02-25 07:45:51 -08:00
committed by Tobias Bosch
parent 21a293b017
commit a963ae48e5
12 changed files with 168 additions and 4 deletions

View File

@ -17,7 +17,7 @@ module.exports = function(gulp, plugins, config) {
var scripts = util.filterByFile(config.scriptsPerFolder, fileName).map(function(script) {
var scriptTag;
var scriptSrc = script.src;
if (script.copy) {
if (script.copy || script.copyOnly) {
scriptSrc = path.basename(script.src);
self.push(new VinylFile({
cwd: file.cwd,
@ -26,6 +26,9 @@ module.exports = function(gulp, plugins, config) {
contents: fs.readFileSync(script.src)
}));
};
if (script.copyOnly) {
return '';
}
if (scriptSrc) {
scriptTag = '<script src="'+scriptSrc+'" type="'+script.mimeType+'"></script>';
} else {