/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tools/ng_benchmark.bzl
32 строки
1 KB
Joey Perrott
build: rename defaults2.bzl to defaults.bzl (#63383)
26 авг 2025, 01:45
26 авг 2025, 01:45
2fcafb6
Код
Авторство
О чём код?
# Copyright Google LLC 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.dev/license """Bazel macro for running Angular benchmarks""" load("//tools:defaults.bzl", "js_binary") def ng_benchmark(name, bundle): """ This macro creates two targets, one that is runnable and prints results and one that can be used for profiling via chrome://inspect. Args: name: name of the runnable rule to create bundle: label of the bundle rule to run """ js_binary( name = name, data = [bundle], entry_point = bundle + ".debug.min.js", tags = ["local", "manual"], # run benchmarks locally and never on CI ) js_binary( name = name + "_profile", data = [bundle], entry_point = bundle + ".debug.min.js", args = ["--node_options=--no-turbo-inlining --node_options=--inspect-brk"], tags = ["local", "manual"], # run benchmarks locally and never on CI )