70 lines
1.5 KiB
Python
70 lines
1.5 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
|
|
load("@npm//http-server:index.bzl", "http_server")
|
|
|
|
ng_module(
|
|
name = "animation_world",
|
|
srcs = ["index.ts"],
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
type_check = False, # see #26462
|
|
deps = [
|
|
"//packages/common",
|
|
"//packages/core",
|
|
"//packages/core/test/bundling/util:reflect_metadata",
|
|
],
|
|
)
|
|
|
|
ng_rollup_bundle(
|
|
name = "bundle",
|
|
entry_point = ":index.ts",
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
deps = [
|
|
":animation_world",
|
|
"//packages/core",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
ts_devserver(
|
|
name = "devserver",
|
|
additional_root_paths = [
|
|
"npm/node_modules/tslib",
|
|
],
|
|
entry_module = "@angular/core/test/bundling/animation_world",
|
|
scripts = [
|
|
"//tools/rxjs:rxjs_umd_modules",
|
|
],
|
|
# Use a serving_path that matches the common static index.html used
|
|
# in both devserver & prodserver
|
|
serving_path = "/bundle.min.js.br",
|
|
static_files = [
|
|
"animation_world.css",
|
|
"base.css",
|
|
"index.html",
|
|
"@npm//tslib",
|
|
],
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
deps = [":animation_world"],
|
|
)
|
|
|
|
http_server(
|
|
name = "prodserver",
|
|
data = [
|
|
"animation_world.css",
|
|
"base.css",
|
|
"index.html",
|
|
":bundle.min.js",
|
|
":bundle.min_debug.js",
|
|
],
|
|
tags = [
|
|
"ivy-only",
|
|
],
|
|
)
|