parent
dc335194ab
commit
ce68b4d839
@ -1,3 +1,5 @@
|
|||||||
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "node_modules_filegroup")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "node_modules_filegroup")
|
||||||
@ -44,8 +46,6 @@ filegroup(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
|
||||||
|
|
||||||
# A nodejs_binary for @angular/bazel/ngc-wrapped to use by default in
|
# A nodejs_binary for @angular/bazel/ngc-wrapped to use by default in
|
||||||
# ng_module that depends on @npm//@angular/bazel instead of the
|
# ng_module that depends on @npm//@angular/bazel instead of the
|
||||||
# output of the //packages/bazel/src/ngc-wrapped ts_library rule. This
|
# output of the //packages/bazel/src/ngc-wrapped ts_library rule. This
|
||||||
|
@ -41,7 +41,9 @@ Angular has a dependency on the @bazel/bazel package which supplies it.
|
|||||||
Try running `yarn bazel` instead.
|
Try running `yarn bazel` instead.
|
||||||
(If you did run that, check that you've got a fresh `yarn install`)
|
(If you did run that, check that you've got a fresh `yarn install`)
|
||||||
|
|
||||||
""")
|
""",
|
||||||
|
minimum_bazel_version = "0.21.0",
|
||||||
|
)
|
||||||
|
|
||||||
# Setup the Node.js toolchain
|
# Setup the Node.js toolchain
|
||||||
node_repositories(
|
node_repositories(
|
||||||
|
@ -5,6 +5,8 @@ load("@build_bazel_rules_nodejs//:defs.bzl", "http_server", "nodejs_binary", "ro
|
|||||||
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
|
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
|
||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
# Allow targets under sub-packages to reference the tsconfig.json file
|
# Allow targets under sub-packages to reference the tsconfig.json file
|
||||||
exports_files(["tsconfig.json"])
|
exports_files(["tsconfig.json"])
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ load("@npm_bazel_typescript//:defs.bzl", "ts_library")
|
|||||||
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
|
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
|
||||||
load("@npm_angular_bazel//:index.bzl", "ng_module", "ng_package")
|
load("@npm_angular_bazel//:index.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
sass_binary(
|
sass_binary(
|
||||||
name = "hello-world-styles",
|
name = "hello-world-styles",
|
||||||
src = "hello-world.component.scss",
|
src = "hello-world.component.scss",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "util_lib",
|
name = "util_lib",
|
||||||
srcs = ["util.ts"],
|
srcs = ["util.ts"],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "util_lib",
|
name = "util_lib",
|
||||||
srcs = ["util.ts"],
|
srcs = ["util.ts"],
|
||||||
|
@ -4,6 +4,8 @@ load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
|
|||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
||||||
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "largetable_lib",
|
name = "largetable_lib",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "util_lib",
|
name = "util_lib",
|
||||||
srcs = ["util.ts"],
|
srcs = ["util.ts"],
|
||||||
|
@ -4,6 +4,8 @@ load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
|
|||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
||||||
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "tree_lib",
|
name = "tree_lib",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "e2e_util",
|
name = "e2e_util",
|
||||||
testonly = 1,
|
testonly = 1,
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"url": "https://github.com/angular/angular.git"
|
"url": "https://github.com/angular/angular.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bazel:format": "find . -type f \\( -name \"*.bzl\" -or -name BUILD -or -name BUILD.bazel -or -name WORKSPACE \\) ! -path \"*/node_modules/*\" | xargs buildifier -v",
|
"bazel:format": "find . -type f \\( -name \"*.bzl\" -or -name WORKSPACE -or -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs buildifier -v --warnings=args-order,attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,constant-glob,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,git-repository,http-archive,integer-division,load,load-on-top,native-build,native-package,out-of-order-load,output-group,package-name,package-on-top,positional-args,redefined-variable,repository-name,same-origin-load,string-iteration,unsorted-dict-items,unused-variable",
|
||||||
"bazel:lint": "yarn bazel:format --lint=warn",
|
"bazel:lint": "yarn bazel:format --lint=warn",
|
||||||
"bazel:lint-fix": "yarn bazel:format --lint=fix",
|
"bazel:lint-fix": "yarn bazel:format --lint=fix",
|
||||||
"preinstall": "node tools/yarn/check-yarn.js",
|
"preinstall": "node tools/yarn/check-yarn.js",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files([
|
exports_files([
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "animations",
|
name = "animations",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "browser",
|
name = "browser",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
Users should not load files under "/src"
|
Users should not load files under "/src"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
load("//packages/bazel/src:ng_module.bzl", _ng_module = "ng_module")
|
|
||||||
load("//packages/bazel/src:ng_setup_workspace.bzl", _ng_setup_workspace = "ng_setup_workspace")
|
|
||||||
load("//packages/bazel/src/ng_package:ng_package.bzl", _ng_package = "ng_package")
|
load("//packages/bazel/src/ng_package:ng_package.bzl", _ng_package = "ng_package")
|
||||||
load(
|
load(
|
||||||
"//packages/bazel/src/protractor:protractor_web_test.bzl",
|
"//packages/bazel/src/protractor:protractor_web_test.bzl",
|
||||||
_protractor_web_test = "protractor_web_test",
|
_protractor_web_test = "protractor_web_test",
|
||||||
_protractor_web_test_suite = "protractor_web_test_suite",
|
_protractor_web_test_suite = "protractor_web_test_suite",
|
||||||
)
|
)
|
||||||
|
load("//packages/bazel/src:ng_module.bzl", _ng_module = "ng_module")
|
||||||
|
load("//packages/bazel/src:ng_setup_workspace.bzl", _ng_setup_workspace = "ng_setup_workspace")
|
||||||
|
|
||||||
ng_module = _ng_module
|
ng_module = _ng_module
|
||||||
ng_package = _ng_package
|
ng_package = _ng_package
|
||||||
|
@ -8,8 +8,6 @@ filegroup(
|
|||||||
# For generating skydoc
|
# For generating skydoc
|
||||||
exports_files(glob(["*.bzl"]))
|
exports_files(glob(["*.bzl"]))
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
|
||||||
|
|
||||||
nodejs_binary(
|
nodejs_binary(
|
||||||
name = "rollup_with_build_optimizer",
|
name = "rollup_with_build_optimizer",
|
||||||
data = [
|
data = [
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
@ -8,8 +10,6 @@ filegroup(
|
|||||||
visibility = ["//packages/bazel:__subpackages__"],
|
visibility = ["//packages/bazel:__subpackages__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "builders",
|
name = "builders",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -170,6 +170,11 @@ esm5_outputs_aspect = aspect(
|
|||||||
executable = True,
|
executable = True,
|
||||||
cfg = "host",
|
cfg = "host",
|
||||||
),
|
),
|
||||||
|
"_tsc_wrapped": attr.label(
|
||||||
|
default = Label("@build_bazel_rules_typescript//:@bazel/typescript/tsc_wrapped"),
|
||||||
|
executable = True,
|
||||||
|
cfg = "host",
|
||||||
|
),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -244,6 +244,8 @@ def _expected_outs(ctx):
|
|||||||
# TODO(alxhub): i18n is only produced by the legacy compiler currently. This should be re-enabled
|
# TODO(alxhub): i18n is only produced by the legacy compiler currently. This should be re-enabled
|
||||||
# when ngtsc can extract messages
|
# when ngtsc can extract messages
|
||||||
if is_legacy_ngc:
|
if is_legacy_ngc:
|
||||||
|
# TODO(manekinekko): due to bazelbuild/bazel#4858 we cannot fix the call to ctx.new_file(genfiles_dir)
|
||||||
|
# so the rule is turned off for now.
|
||||||
i18n_messages_files = [ctx.new_file(ctx.genfiles_dir, ctx.label.name + "_ngc_messages.xmb")]
|
i18n_messages_files = [ctx.new_file(ctx.genfiles_dir, ctx.label.name + "_ngc_messages.xmb")]
|
||||||
else:
|
else:
|
||||||
i18n_messages_files = []
|
i18n_messages_files = []
|
||||||
@ -268,9 +270,9 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs):
|
|||||||
expected_outs = outs.closure_js
|
expected_outs = outs.closure_js
|
||||||
|
|
||||||
angular_compiler_options = {
|
angular_compiler_options = {
|
||||||
"enableResourceInlining": ctx.attr.inline_resources,
|
|
||||||
"generateCodeForLibraries": False,
|
|
||||||
"allowEmptyCodegenFiles": True,
|
"allowEmptyCodegenFiles": True,
|
||||||
|
"enableIvy": _enable_ivy_value(ctx),
|
||||||
|
"enableResourceInlining": ctx.attr.inline_resources,
|
||||||
# Summaries are only enabled if Angular outputs are to be produced.
|
# Summaries are only enabled if Angular outputs are to be produced.
|
||||||
"enableSummariesForJit": is_legacy_ngc,
|
"enableSummariesForJit": is_legacy_ngc,
|
||||||
"enableIvy": _enable_ivy_value(ctx),
|
"enableIvy": _enable_ivy_value(ctx),
|
||||||
@ -537,8 +539,8 @@ def ng_module_impl(ctx, ts_compile_actions):
|
|||||||
|
|
||||||
if is_legacy_ngc:
|
if is_legacy_ngc:
|
||||||
providers["angular"] = {
|
providers["angular"] = {
|
||||||
"summaries": outs.summaries,
|
|
||||||
"metadata": outs.metadata,
|
"metadata": outs.metadata,
|
||||||
|
"summaries": outs.summaries,
|
||||||
}
|
}
|
||||||
providers["ngc_messages"] = outs.i18n_messages
|
providers["ngc_messages"] = outs.i18n_messages
|
||||||
|
|
||||||
@ -568,13 +570,6 @@ local_deps_aspects = [collect_node_modules_aspect, _collect_summaries_aspect]
|
|||||||
|
|
||||||
NG_MODULE_ATTRIBUTES = {
|
NG_MODULE_ATTRIBUTES = {
|
||||||
"srcs": attr.label_list(allow_files = [".ts"]),
|
"srcs": attr.label_list(allow_files = [".ts"]),
|
||||||
|
|
||||||
# Note: DEPS_ASPECTS is already a list, we add the cast to workaround
|
|
||||||
# https://github.com/bazelbuild/skydoc/issues/21
|
|
||||||
"deps": attr.label_list(
|
|
||||||
doc = "Targets that are imported by this target",
|
|
||||||
aspects = local_deps_aspects,
|
|
||||||
),
|
|
||||||
"assets": attr.label_list(
|
"assets": attr.label_list(
|
||||||
doc = ".html and .css files needed by the Angular compiler",
|
doc = ".html and .css files needed by the Angular compiler",
|
||||||
allow_files = [
|
allow_files = [
|
||||||
@ -583,14 +578,6 @@ NG_MODULE_ATTRIBUTES = {
|
|||||||
".html",
|
".html",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
"factories": attr.label_list(
|
|
||||||
allow_files = [".ts", ".html"],
|
|
||||||
mandatory = False,
|
|
||||||
),
|
|
||||||
"filter_summaries": attr.bool(default = False),
|
|
||||||
"type_check": attr.bool(default = True),
|
|
||||||
"inline_resources": attr.bool(default = True),
|
|
||||||
"no_i18n": attr.bool(default = False),
|
|
||||||
"compiler": attr.label(
|
"compiler": attr.label(
|
||||||
doc = """Sets a different ngc compiler binary to use for this library.
|
doc = """Sets a different ngc compiler binary to use for this library.
|
||||||
|
|
||||||
@ -605,16 +592,40 @@ NG_MODULE_ATTRIBUTES = {
|
|||||||
executable = True,
|
executable = True,
|
||||||
cfg = "host",
|
cfg = "host",
|
||||||
),
|
),
|
||||||
|
"factories": attr.label_list(
|
||||||
|
allow_files = [".ts", ".html"],
|
||||||
|
mandatory = False,
|
||||||
|
),
|
||||||
|
"filter_summaries": attr.bool(default = False),
|
||||||
|
"inline_resources": attr.bool(default = True),
|
||||||
"ng_xi18n": attr.label(
|
"ng_xi18n": attr.label(
|
||||||
default = Label(DEFAULT_NG_XI18N),
|
default = Label(DEFAULT_NG_XI18N),
|
||||||
executable = True,
|
executable = True,
|
||||||
cfg = "host",
|
cfg = "host",
|
||||||
),
|
),
|
||||||
|
"no_i18n": attr.bool(default = False),
|
||||||
|
"type_check": attr.bool(default = True),
|
||||||
|
|
||||||
|
# Note: DEPS_ASPECTS is already a list, we add the cast to workaround
|
||||||
|
# https://github.com/bazelbuild/skydoc/issues/21
|
||||||
|
"deps": attr.label_list(
|
||||||
|
doc = "Targets that are imported by this target",
|
||||||
|
aspects = local_deps_aspects,
|
||||||
|
),
|
||||||
"_supports_workers": attr.bool(default = True),
|
"_supports_workers": attr.bool(default = True),
|
||||||
}
|
}
|
||||||
|
|
||||||
NG_MODULE_RULE_ATTRS = dict(dict(COMMON_ATTRIBUTES, **NG_MODULE_ATTRIBUTES), **{
|
NG_MODULE_RULE_ATTRS = dict(dict(COMMON_ATTRIBUTES, **NG_MODULE_ATTRIBUTES), **{
|
||||||
"tsconfig": attr.label(allow_files = True, single_file = True),
|
"entry_point": attr.string(),
|
||||||
|
|
||||||
|
# Default is %{name}_public_index
|
||||||
|
# The suffix points to the generated "bundle index" files that users import from
|
||||||
|
# The default is intended to avoid collisions with the users input files.
|
||||||
|
# Later packaging rules will point to these generated files as the entry point
|
||||||
|
# into the package.
|
||||||
|
# See the flatModuleOutFile documentation in
|
||||||
|
# https://github.com/angular/angular/blob/master/packages/compiler-cli/src/transformers/api.ts
|
||||||
|
"flat_module_out_file": attr.string(),
|
||||||
"node_modules": attr.label(
|
"node_modules": attr.label(
|
||||||
doc = """The npm packages which should be available during the compile.
|
doc = """The npm packages which should be available during the compile.
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
||||||
|
|
||||||
# BEGIN-DEV-ONLY
|
# BEGIN-DEV-ONLY
|
||||||
|
@ -16,6 +16,12 @@ specification of this format at https://goo.gl/jB3GVv
|
|||||||
load("@build_bazel_rules_nodejs//internal/common:collect_es6_sources.bzl", "collect_es6_sources")
|
load("@build_bazel_rules_nodejs//internal/common:collect_es6_sources.bzl", "collect_es6_sources")
|
||||||
load("@build_bazel_rules_nodejs//internal/common:node_module_info.bzl", "NodeModuleInfo")
|
load("@build_bazel_rules_nodejs//internal/common:node_module_info.bzl", "NodeModuleInfo")
|
||||||
load("@build_bazel_rules_nodejs//internal/common:sources_aspect.bzl", "sources_aspect")
|
load("@build_bazel_rules_nodejs//internal/common:sources_aspect.bzl", "sources_aspect")
|
||||||
|
load(
|
||||||
|
"@build_bazel_rules_nodejs//:internal/npm_package/npm_package.bzl",
|
||||||
|
"NPM_PACKAGE_ATTRS",
|
||||||
|
"NPM_PACKAGE_OUTPUTS",
|
||||||
|
"create_package",
|
||||||
|
)
|
||||||
load(
|
load(
|
||||||
"@build_bazel_rules_nodejs//:internal/rollup/rollup_bundle.bzl",
|
"@build_bazel_rules_nodejs//:internal/rollup/rollup_bundle.bzl",
|
||||||
"ROLLUP_ATTRS",
|
"ROLLUP_ATTRS",
|
||||||
@ -32,6 +38,7 @@ load(
|
|||||||
load("//packages/bazel/src:external.bzl", "FLAT_DTS_FILE_SUFFIX")
|
load("//packages/bazel/src:external.bzl", "FLAT_DTS_FILE_SUFFIX")
|
||||||
load("//packages/bazel/src:esm5.bzl", "esm5_outputs_aspect", "esm5_root_dir", "flatten_esm5")
|
load("//packages/bazel/src:esm5.bzl", "esm5_outputs_aspect", "esm5_root_dir", "flatten_esm5")
|
||||||
load("//packages/bazel/src/ng_package:collect-type-definitions.bzl", "collect_type_definitions")
|
load("//packages/bazel/src/ng_package:collect-type-definitions.bzl", "collect_type_definitions")
|
||||||
|
load("//packages/bazel/src:esm5.bzl", "esm5_outputs_aspect", "esm5_root_dir", "flatten_esm5")
|
||||||
|
|
||||||
_DEFAULT_NG_PACKAGER = "@npm//@angular/bazel/bin:packager"
|
_DEFAULT_NG_PACKAGER = "@npm//@angular/bazel/bin:packager"
|
||||||
|
|
||||||
@ -336,8 +343,8 @@ def _ng_package_impl(ctx):
|
|||||||
packager_inputs.extend([m.metadata_file])
|
packager_inputs.extend([m.metadata_file])
|
||||||
metadata_arg[m.module_name] = {
|
metadata_arg[m.module_name] = {
|
||||||
"index": m.typings_file.path.replace(".d.ts", ".js"),
|
"index": m.typings_file.path.replace(".d.ts", ".js"),
|
||||||
"typings": m.typings_file.path,
|
|
||||||
"metadata": m.metadata_file.path,
|
"metadata": m.metadata_file.path,
|
||||||
|
"typings": m.typings_file.path,
|
||||||
}
|
}
|
||||||
packager_args.add(str(metadata_arg))
|
packager_args.add(str(metadata_arg))
|
||||||
|
|
||||||
@ -401,7 +408,6 @@ DEPS_ASPECTS = [esm5_outputs_aspect, sources_aspect]
|
|||||||
|
|
||||||
NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **dict(ROLLUP_ATTRS, **{
|
NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **dict(ROLLUP_ATTRS, **{
|
||||||
"srcs": attr.label_list(allow_files = True),
|
"srcs": attr.label_list(allow_files = True),
|
||||||
"deps": attr.label_list(aspects = DEPS_ASPECTS),
|
|
||||||
"data": attr.label_list(
|
"data": attr.label_list(
|
||||||
doc = "Additional, non-Angular files to be added to the package, e.g. global CSS assets.",
|
doc = "Additional, non-Angular files to be added to the package, e.g. global CSS assets.",
|
||||||
allow_files = True,
|
allow_files = True,
|
||||||
@ -412,11 +418,15 @@ NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **dict(ROLLUP_ATTRS, **{
|
|||||||
"entry_point_name": attr.string(
|
"entry_point_name": attr.string(
|
||||||
doc = "Name to use when generating bundle files for the primary entry-point.",
|
doc = "Name to use when generating bundle files for the primary entry-point.",
|
||||||
),
|
),
|
||||||
|
"globals": attr.string_dict(default = {}),
|
||||||
|
"include_devmode_srcs": attr.bool(default = False),
|
||||||
"ng_packager": attr.label(
|
"ng_packager": attr.label(
|
||||||
default = Label(_DEFAULT_NG_PACKAGER),
|
default = Label(_DEFAULT_NG_PACKAGER),
|
||||||
executable = True,
|
executable = True,
|
||||||
cfg = "host",
|
cfg = "host",
|
||||||
),
|
),
|
||||||
|
"readme_md": attr.label(allow_single_file = [".md"]),
|
||||||
|
"deps": attr.label_list(aspects = DEPS_ASPECTS),
|
||||||
"_rollup": attr.label(
|
"_rollup": attr.label(
|
||||||
default = Label("@build_bazel_rules_nodejs//internal/rollup"),
|
default = Label("@build_bazel_rules_nodejs//internal/rollup"),
|
||||||
executable = True,
|
executable = True,
|
||||||
@ -479,8 +489,8 @@ def ng_package_outputs(name, entry_point, entry_point_name):
|
|||||||
|
|
||||||
basename = primary_entry_point_name(name, entry_point, entry_point_name)
|
basename = primary_entry_point_name(name, entry_point, entry_point_name)
|
||||||
outputs = {
|
outputs = {
|
||||||
"fesm5": "fesm5/%s.js" % basename,
|
|
||||||
"fesm2015": "fesm2015/%s.js" % basename,
|
"fesm2015": "fesm2015/%s.js" % basename,
|
||||||
|
"fesm5": "fesm5/%s.js" % basename,
|
||||||
"umd": "%s.umd.js" % basename,
|
"umd": "%s.umd.js" % basename,
|
||||||
"umd_min": "%s.umd.min.js" % basename,
|
"umd_min": "%s.umd.min.js" % basename,
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ def _run_tsc(ctx, input, output):
|
|||||||
args.add(input)
|
args.add(input)
|
||||||
args.add("--outFile", output)
|
args.add("--outFile", output)
|
||||||
|
|
||||||
ctx.action(
|
ctx.actions.run(
|
||||||
executable = ctx.executable._tsc,
|
executable = ctx.executable._tsc,
|
||||||
inputs = [input],
|
inputs = [input],
|
||||||
outputs = [output],
|
outputs = [output],
|
||||||
@ -170,16 +170,16 @@ ng_rollup_bundle = rule(
|
|||||||
Typically this will be `ts_library` or `ng_module` targets.""",
|
Typically this will be `ts_library` or `ng_module` targets.""",
|
||||||
aspects = DEPS_ASPECTS,
|
aspects = DEPS_ASPECTS,
|
||||||
),
|
),
|
||||||
"_rollup": attr.label(
|
|
||||||
executable = True,
|
|
||||||
cfg = "host",
|
|
||||||
default = Label("@angular//packages/bazel/src:rollup_with_build_optimizer"),
|
|
||||||
),
|
|
||||||
"_brotli": attr.label(
|
"_brotli": attr.label(
|
||||||
executable = True,
|
executable = True,
|
||||||
cfg = "host",
|
cfg = "host",
|
||||||
default = Label("@org_brotli//:brotli"),
|
default = Label("@org_brotli//:brotli"),
|
||||||
),
|
),
|
||||||
|
"_rollup": attr.label(
|
||||||
|
executable = True,
|
||||||
|
cfg = "host",
|
||||||
|
default = Label("@angular//packages/bazel/src:rollup_with_build_optimizer"),
|
||||||
|
),
|
||||||
}),
|
}),
|
||||||
outputs = dict(ROLLUP_OUTPUTS, **{
|
outputs = dict(ROLLUP_OUTPUTS, **{
|
||||||
"build_es5_min_compressed": "%{name}.min.js.br",
|
"build_es5_min_compressed": "%{name}.min.js.br",
|
||||||
|
@ -62,9 +62,9 @@ def _protractor_web_test_impl(ctx):
|
|||||||
substitutions = {
|
substitutions = {
|
||||||
"TMPL_config": expand_path_into_runfiles(ctx, configuration_file.short_path) if configuration_file else "",
|
"TMPL_config": expand_path_into_runfiles(ctx, configuration_file.short_path) if configuration_file else "",
|
||||||
"TMPL_on_prepare": expand_path_into_runfiles(ctx, on_prepare_file.short_path) if on_prepare_file else "",
|
"TMPL_on_prepare": expand_path_into_runfiles(ctx, on_prepare_file.short_path) if on_prepare_file else "",
|
||||||
"TMPL_workspace": ctx.workspace_name,
|
|
||||||
"TMPL_server": ctx.executable.server.short_path if ctx.executable.server else "",
|
"TMPL_server": ctx.executable.server.short_path if ctx.executable.server else "",
|
||||||
"TMPL_specs": "\n".join([" '%s'," % e for e in specs]),
|
"TMPL_specs": "\n".join([" '%s'," % e for e in specs]),
|
||||||
|
"TMPL_workspace": ctx.workspace_name,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -121,14 +121,17 @@ _protractor_web_test = rule(
|
|||||||
test = True,
|
test = True,
|
||||||
executable = True,
|
executable = True,
|
||||||
attrs = {
|
attrs = {
|
||||||
|
"srcs": attr.label_list(
|
||||||
|
doc = "A list of JavaScript test files",
|
||||||
|
allow_files = [".js"],
|
||||||
|
),
|
||||||
"configuration": attr.label(
|
"configuration": attr.label(
|
||||||
doc = "Protractor configuration file",
|
doc = "Protractor configuration file",
|
||||||
allow_single_file = True,
|
allow_single_file = True,
|
||||||
aspects = [sources_aspect],
|
aspects = [sources_aspect],
|
||||||
),
|
),
|
||||||
"srcs": attr.label_list(
|
"data": attr.label_list(
|
||||||
doc = "A list of JavaScript test files",
|
doc = "Runtime dependencies",
|
||||||
allow_files = [".js"],
|
|
||||||
),
|
),
|
||||||
"on_prepare": attr.label(
|
"on_prepare": attr.label(
|
||||||
doc = """A file with a node.js script to run once before all tests run.
|
doc = """A file with a node.js script to run once before all tests run.
|
||||||
@ -137,27 +140,22 @@ _protractor_web_test = rule(
|
|||||||
allow_single_file = True,
|
allow_single_file = True,
|
||||||
aspects = [sources_aspect],
|
aspects = [sources_aspect],
|
||||||
),
|
),
|
||||||
"deps": attr.label_list(
|
"protractor": attr.label(
|
||||||
doc = "Other targets which produce JavaScript such as `ts_library`",
|
doc = "Protractor executable target (set by protractor_web_test macro)",
|
||||||
|
executable = True,
|
||||||
|
cfg = "target",
|
||||||
allow_files = True,
|
allow_files = True,
|
||||||
aspects = [sources_aspect],
|
|
||||||
),
|
|
||||||
"data": attr.label_list(
|
|
||||||
doc = "Runtime dependencies",
|
|
||||||
),
|
),
|
||||||
"server": attr.label(
|
"server": attr.label(
|
||||||
doc = "Optional server executable target",
|
doc = "Optional server executable target",
|
||||||
executable = True,
|
executable = True,
|
||||||
cfg = "target",
|
cfg = "target",
|
||||||
single_file = False,
|
|
||||||
allow_files = True,
|
allow_files = True,
|
||||||
),
|
),
|
||||||
"protractor": attr.label(
|
"deps": attr.label_list(
|
||||||
doc = "Protractor executable target (set by protractor_web_test macro)",
|
doc = "Other targets which produce JavaScript such as `ts_library`",
|
||||||
executable = True,
|
|
||||||
cfg = "target",
|
|
||||||
single_file = False,
|
|
||||||
allow_files = True,
|
allow_files = True,
|
||||||
|
aspects = [sources_aspect],
|
||||||
),
|
),
|
||||||
"_conf_tmpl": attr.label(
|
"_conf_tmpl": attr.label(
|
||||||
default = Label(_CONF_TMPL),
|
default = Label(_CONF_TMPL),
|
||||||
|
@ -2,6 +2,8 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
|
|
||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "utils",
|
name = "utils",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
@ -8,8 +10,6 @@ filegroup(
|
|||||||
visibility = ["//packages/bazel:__subpackages__"],
|
visibility = ["//packages/bazel:__subpackages__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
||||||
|
|
||||||
jasmine_node_test(
|
jasmine_node_test(
|
||||||
name = "test",
|
name = "test",
|
||||||
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "bazel-workspace",
|
name = "bazel-workspace",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "ng-new",
|
name = "ng-new",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//packages/bazel/test:__subpackages__"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package", "npm_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package", "npm_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//packages/bazel/test:__subpackages__"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "example",
|
name = "example",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//packages/bazel/test:__subpackages__"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
|
package(default_visibility = ["//packages/bazel/test:__subpackages__"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "secondary",
|
name = "secondary",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "benchpress",
|
name = "benchpress",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "common",
|
name = "common",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "http",
|
name = "http",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "locales",
|
name = "locales",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
@ -14,6 +14,10 @@ npm_package(
|
|||||||
name = "package",
|
name = "package",
|
||||||
srcs = ["package.json"],
|
srcs = ["package.json"],
|
||||||
replacements = {
|
replacements = {
|
||||||
|
|
||||||
|
# Workaround for `.d.ts`` containing `/// <amd-module .../>`
|
||||||
|
# which are generated in TypeScript v2.9, but not before.
|
||||||
|
"/// <amd-module name=.*/>": "",
|
||||||
# Workaround for https://github.com/angular/angular/issues/23217
|
# Workaround for https://github.com/angular/angular/issues/23217
|
||||||
# Webpack will detect that the UMD outputs from TypeScript pass the
|
# Webpack will detect that the UMD outputs from TypeScript pass the
|
||||||
# `require` function into the module, and cannot accurately track
|
# `require` function into the module, and cannot accurately track
|
||||||
@ -21,10 +25,6 @@ npm_package(
|
|||||||
# We don't actually import anything in the locale code so we can
|
# We don't actually import anything in the locale code so we can
|
||||||
# null out the require reference passed into the module.
|
# null out the require reference passed into the module.
|
||||||
"factory\(require, exports\)": "factory(null, exports)",
|
"factory\(require, exports\)": "factory(null, exports)",
|
||||||
|
|
||||||
# Workaround for `.d.ts`` containing `/// <amd-module .../>`
|
|
||||||
# which are generated in TypeScript v2.9, but not before.
|
|
||||||
"/// <amd-module name=.*/>": "",
|
|
||||||
},
|
},
|
||||||
deps = [":locales"],
|
deps = [":locales"],
|
||||||
)
|
)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -3,6 +3,8 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_config")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_config")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_config(
|
ts_config(
|
||||||
name = "tsconfig",
|
name = "tsconfig",
|
||||||
src = "tsconfig-build.json",
|
src = "tsconfig-build.json",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ts_library")
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "app",
|
name = "app",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "lib1",
|
name = "lib1",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "lib2",
|
name = "lib2",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
load("//packages/bazel/src:ng_rollup_bundle.bzl", "ng_rollup_bundle")
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "app",
|
name = "app",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
load("//packages/bazel:index.bzl", "ng_module")
|
load("//packages/bazel:index.bzl", "ng_module")
|
||||||
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
||||||
|
load(":extract_flat_module_index.bzl", "extract_flat_module_index")
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "test_module",
|
name = "test_module",
|
||||||
@ -21,16 +23,12 @@ ng_module(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
load(":extract_flat_module_index.bzl", "extract_flat_module_index")
|
|
||||||
|
|
||||||
extract_flat_module_index(
|
extract_flat_module_index(
|
||||||
name = "flat_module_index",
|
name = "flat_module_index",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
deps = [":test_module"],
|
deps = [":test_module"],
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test")
|
|
||||||
|
|
||||||
jasmine_node_test(
|
jasmine_node_test(
|
||||||
name = "test",
|
name = "test",
|
||||||
srcs = ["spec.js"],
|
srcs = ["spec.js"],
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "ngcc",
|
name = "ngcc",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "annotations",
|
name = "annotations",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "diagnostics",
|
name = "diagnostics",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "entry_point",
|
name = "entry_point",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
module_name = "@angular/compiler-cli/src/ngtsc/entry_point",
|
module_name = "@angular/compiler-cli/src/ngtsc/entry_point",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "imports",
|
name = "imports",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/*.ts",
|
"src/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "partial_evaluator",
|
name = "partial_evaluator",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/*.ts",
|
"src/*.ts",
|
||||||
]),
|
]),
|
||||||
module_name = "@angular/compiler-cli/src/ngtsc/partial_evaluator",
|
module_name = "@angular/compiler-cli/src/ngtsc/partial_evaluator",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "reflection",
|
name = "reflection",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = ["@ngdeps//typescript"],
|
deps = ["@ngdeps//typescript"],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "shims",
|
name = "shims",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "switch",
|
name = "switch",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "transform",
|
name = "transform",
|
||||||
srcs = glob([
|
srcs = ["index.ts"] + glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "translator",
|
name = "translator",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "typecheck",
|
name = "typecheck",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "util",
|
name = "util",
|
||||||
srcs = glob([
|
srcs = glob([
|
||||||
"index.ts",
|
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
]),
|
]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_package", "ts_library")
|
load("//tools:defaults.bzl", "ng_package", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "fake_core",
|
name = "fake_core",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_package", "ts_library")
|
load("//tools:defaults.bzl", "ng_package", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "compiler",
|
name = "compiler",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "core",
|
name = "core",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = [
|
package(default_visibility = [
|
||||||
"//packages/compiler/test:__pkg__",
|
"//packages/compiler/test:__pkg__",
|
||||||
"//packages/core:__subpackages__",
|
"//packages/core:__subpackages__",
|
||||||
"//tools/public_api_guard:__pkg__",
|
"//tools/public_api_guard:__pkg__",
|
||||||
])
|
])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "compiler",
|
name = "compiler",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = [
|
package(default_visibility = [
|
||||||
"//packages/core:__subpackages__",
|
"//packages/core:__subpackages__",
|
||||||
"//tools/public_api_guard:__pkg__",
|
"//tools/public_api_guard:__pkg__",
|
||||||
])
|
])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "interface",
|
name = "interface",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = [
|
package(default_visibility = [
|
||||||
"//packages/core:__subpackages__",
|
"//packages/core:__subpackages__",
|
||||||
"//tools/public_api_guard:__pkg__",
|
"//tools/public_api_guard:__pkg__",
|
||||||
])
|
])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "interface",
|
name = "interface",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = [
|
package(default_visibility = [
|
||||||
"//packages/core:__subpackages__",
|
"//packages/core:__subpackages__",
|
||||||
"//tools/public_api_guard:__pkg__",
|
"//tools/public_api_guard:__pkg__",
|
||||||
])
|
])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "reflection",
|
name = "reflection",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
package(default_visibility = [
|
package(default_visibility = [
|
||||||
"//packages/core:__subpackages__",
|
"//packages/core:__subpackages__",
|
||||||
"//tools/public_api_guard:__pkg__",
|
"//tools/public_api_guard:__pkg__",
|
||||||
])
|
])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "util",
|
name = "util",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -3,6 +3,8 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "animation_world",
|
name = "animation_world",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -4,6 +4,8 @@ load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle
|
|||||||
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "hello_world",
|
name = "hello_world",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -3,6 +3,8 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_library")
|
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_library")
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "hello_world_i18n",
|
name = "hello_world_i18n",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -3,6 +3,8 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "hello_world",
|
name = "hello_world",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ng_rollup_bundle", "ts_library")
|
|
||||||
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
||||||
|
load("//tools:defaults.bzl", "jasmine_node_test", "ng_rollup_bundle", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "injection",
|
name = "injection",
|
||||||
|
@ -5,6 +5,8 @@ load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
|
|||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "todo",
|
name = "todo",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -4,6 +4,8 @@ load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle
|
|||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "todo_i18n",
|
name = "todo_i18n",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -4,6 +4,8 @@ load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle
|
|||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "http_server")
|
||||||
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
load("@npm_bazel_typescript//:defs.bzl", "ts_devserver")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "todo",
|
name = "todo",
|
||||||
srcs = ["index.ts"],
|
srcs = ["index.ts"],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:defaults.bzl", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
# Either loads reflect-metadata or is a no-op, depending on whether compilation is in JIT mode.
|
# Either loads reflect-metadata or is a no-op, depending on whether compilation is in JIT mode.
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "reflect_metadata",
|
name = "reflect_metadata",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "render3_lib",
|
name = "render3_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "ivy_lib",
|
name = "ivy_lib",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "view_lib",
|
name = "view_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "elements",
|
name = "elements",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
load("//tools:defaults.bzl", "npm_package")
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files([
|
exports_files([
|
||||||
"package.json",
|
"package.json",
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "jasmine_node_test", "npm_package", "ts_library")
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "ng-add",
|
name = "ng-add",
|
||||||
srcs = glob(
|
srcs =
|
||||||
[
|
[
|
||||||
"index.ts",
|
"index.ts",
|
||||||
"schema.ts",
|
"schema.ts",
|
||||||
],
|
],
|
||||||
),
|
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
"//packages/core",
|
"//packages/core",
|
||||||
@ -21,11 +20,9 @@ ts_library(
|
|||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
srcs = glob(
|
srcs = [
|
||||||
[
|
"index_spec.ts",
|
||||||
"index_spec.ts",
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
deps = [
|
deps = [
|
||||||
":ng-add",
|
":ng-add",
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
load("//tools:defaults.bzl", "ts_library", "ts_web_test_suite")
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "test_lib",
|
name = "test_lib",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "forms",
|
name = "forms",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "http",
|
name = "http",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
load("//tools:defaults.bzl", "npm_package", "ts_library")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "language-service",
|
name = "language-service",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -4,9 +4,9 @@ ls_rollup_bundle(
|
|||||||
name = "language-service",
|
name = "language-service",
|
||||||
entry_point = "packages/language-service/index.js",
|
entry_point = "packages/language-service/index.js",
|
||||||
globals = {
|
globals = {
|
||||||
"typescript": "ts",
|
|
||||||
"path": "path",
|
|
||||||
"fs": "fs",
|
"fs": "fs",
|
||||||
|
"path": "path",
|
||||||
|
"typescript": "ts",
|
||||||
},
|
},
|
||||||
license_banner = "banner.js.txt",
|
license_banner = "banner.js.txt",
|
||||||
visibility = ["//packages/language-service:__pkg__"],
|
visibility = ["//packages/language-service:__pkg__"],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||||
|
|
||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "platform-browser-dynamic",
|
name = "platform-browser-dynamic",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
load("//tools:defaults.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["package.json"])
|
exports_files(["package.json"])
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "ng_module")
|
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(["**/*.ts"]),
|
srcs = glob(["**/*.ts"]),
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user