62 lines
1.9 KiB
Python
62 lines
1.9 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "node_modules_filegroup")
|
|
|
|
exports_files([
|
|
"tsconfig.json",
|
|
"LICENSE",
|
|
"protractor-perf.conf.js",
|
|
])
|
|
|
|
# Developers should always run `bazel run :install`
|
|
# This ensures that package.json in subdirectories get installed as well.
|
|
alias(
|
|
name = "install",
|
|
actual = "@nodejs//:yarn",
|
|
)
|
|
|
|
filegroup(
|
|
name = "web_test_bootstrap_scripts",
|
|
# do not sort
|
|
srcs = [
|
|
"@ngdeps//node_modules/reflect-metadata:Reflect.js",
|
|
"@ngdeps//node_modules/zone.js:dist/zone.js",
|
|
"@ngdeps//node_modules/zone.js:dist/zone-testing.js",
|
|
"@ngdeps//node_modules/zone.js:dist/task-tracking.js",
|
|
"//:test-events.js",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "angularjs_scripts",
|
|
srcs = [
|
|
"@ngdeps//node_modules/angular:angular.js",
|
|
"@ngdeps//node_modules/angular-1.5:angular.js",
|
|
"@ngdeps//node_modules/angular-1.6:angular.js",
|
|
"@ngdeps//node_modules/angular-mocks:angular-mocks.js",
|
|
"@ngdeps//node_modules/angular-mocks-1.5:angular-mocks.js",
|
|
"@ngdeps//node_modules/angular-mocks-1.6:angular-mocks.js",
|
|
],
|
|
)
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
|
|
|
# Override for ts_web_test_suite to use @ngdeps instead of @npm
|
|
nodejs_binary(
|
|
name = "@bazel/karma/karma",
|
|
data = ["@ngdeps//@bazel/karma"],
|
|
entry_point = "@bazel/karma/karma.js",
|
|
install_source_map_support = False,
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# Override for ts_library to use @ngdeps instead of @npm
|
|
nodejs_binary(
|
|
name = "@bazel/typescript/tsc_wrapped",
|
|
data = ["@ngdeps//@bazel/typescript"],
|
|
entry_point = "@bazel/typescript/tsc_wrapped/tsc_wrapped.js",
|
|
install_source_map_support = False,
|
|
templated_args = ["--node_options=--expose-gc"],
|
|
visibility = ["//visibility:public"],
|
|
)
|