feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)
* Move tools/brotli-cli, tools/browsers, tools/components, tools/ng_rollup_bundle, and modules/e2e_util to dev-infra/benchmarking * Fix imports and references to moved folders and files * Set up BUILD.bazel files for moved folders so they can be packaged with dev-infra's :npm_package PR Close #36434
This commit is contained in:

committed by
Andrew Kushnir

parent
e37f2663c2
commit
b7f2a033df
13
dev-infra/benchmark/component_benchmark/defaults/BUILD.bazel
Normal file
13
dev-infra/benchmark/component_benchmark/defaults/BUILD.bazel
Normal file
@ -0,0 +1,13 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# Make source files available for distribution via pkg_npm
|
||||
filegroup(
|
||||
name = "files",
|
||||
srcs = glob(["*"]),
|
||||
)
|
||||
|
||||
exports_files([
|
||||
"index.html",
|
||||
"index.ts",
|
||||
"styles.css",
|
||||
])
|
14
dev-infra/benchmark/component_benchmark/defaults/index.html
Normal file
14
dev-infra/benchmark/component_benchmark/defaults/index.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Benchmark Test</title>
|
||||
<!-- Prevent favicon.ico requests -->
|
||||
<link rel="icon" href="data:,">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<app-root id="root">Loading...</app-root>
|
||||
<script src="/app_bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
19
dev-infra/benchmark/component_benchmark/defaults/index.ts
Normal file
19
dev-infra/benchmark/component_benchmark/defaults/index.ts
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
// @ts-ignore Cannot find module
|
||||
import {enableProdMode} from '@angular/core';
|
||||
|
||||
// @ts-ignore Cannot find module
|
||||
import {platformBrowser} from '@angular/platform-browser';
|
||||
|
||||
// @ts-ignore Cannot find module
|
||||
import {AppModuleNgFactory} from './app.module.ngfactory';
|
||||
|
||||
enableProdMode();
|
||||
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
|
@ -0,0 +1,7 @@
|
||||
/*
|
||||
* This file exists so that if the default index.html is used a 404 will not
|
||||
* throw.
|
||||
*
|
||||
* We leave an import for "styles.css" in the default index.html for the case
|
||||
* where someone wants to use index.html and provide their own styles.
|
||||
*/
|
Reference in New Issue
Block a user