Greg Magolan c438b5eeda build(bazel): turn on preserve-symlinks (#24881)
This change turns on preserve-symlinks in nodejs to verify hermeticity of the Angular build.

BREAKING CHANGE: Use of @angular/bazel rules now requires calling ng_setup_workspace() in your WORKSPACE file.

For example:

local_repository(
    name = "angular",
    path = "node_modules/@angular/bazel",
)

load("@angular//:index.bzl", "ng_setup_workspace")

ng_setup_workspace()

PR Close #24881
2018-07-20 10:37:30 -07:00

45 lines
807 B
Python

package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "npm_package", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
ts_library(
name = "ng-add",
srcs = glob(
[
"index.ts",
"schema.ts",
],
),
deps = [
"//packages/common",
"//packages/core",
"@rxjs",
],
)
ts_library(
name = "test_lib",
testonly = 1,
srcs = glob(
[
"index_spec.ts",
],
),
deps = [
":ng-add",
"//packages/common",
"//packages/core",
"@rxjs",
"@rxjs//operators",
],
)
jasmine_node_test(
name = "test",
deps = [
":test_lib",
"//packages/elements/schematics:collection",
],
)