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:

committed by
Tobias Bosch

parent
21a293b017
commit
a963ae48e5
@ -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 {
|
||||
|
Reference in New Issue
Block a user