2017-06-02 12:43:52 -04:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2018-03-20 16:13:06 -04:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "node_modules_filegroup")
|
|
|
|
|
2017-12-17 18:10:54 -05:00
|
|
|
exports_files([
|
|
|
|
"tsconfig.json",
|
2018-03-01 13:41:35 -05:00
|
|
|
"LICENSE",
|
2018-07-06 18:42:07 -04:00
|
|
|
"protractor-perf.conf.js",
|
2017-12-17 18:10:54 -05:00
|
|
|
])
|
2017-06-02 12:43:52 -04:00
|
|
|
|
2017-12-16 14:35:47 -05:00
|
|
|
filegroup(
|
2017-12-18 18:37:05 -05:00
|
|
|
name = "web_test_bootstrap_scripts",
|
2017-12-16 14:35:47 -05:00
|
|
|
# do not sort
|
|
|
|
srcs = [
|
2018-10-04 16:14:14 -04:00
|
|
|
"@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",
|
2018-06-04 17:58:23 -04:00
|
|
|
"//:test-events.js",
|
2017-12-16 14:35:47 -05:00
|
|
|
],
|
|
|
|
)
|
2017-12-18 18:37:05 -05:00
|
|
|
|
|
|
|
filegroup(
|
2018-05-31 02:49:37 -04:00
|
|
|
name = "angularjs_scripts",
|
2017-12-18 18:37:05 -05:00
|
|
|
srcs = [
|
2018-12-17 12:28:06 -05:00
|
|
|
# We also declare the unminfied AngularJS files since these can be used for
|
|
|
|
# local debugging (e.g. see: packages/upgrade/test/common/test_helpers.ts)
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//node_modules/angular:angular.js",
|
2018-12-17 12:28:06 -05:00
|
|
|
"@ngdeps//node_modules/angular:angular.min.js",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//node_modules/angular-1.5:angular.js",
|
2018-12-17 12:28:06 -05:00
|
|
|
"@ngdeps//node_modules/angular-1.5:angular.min.js",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//node_modules/angular-1.6:angular.js",
|
2018-12-17 12:28:06 -05:00
|
|
|
"@ngdeps//node_modules/angular-1.6:angular.min.js",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@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",
|
2017-12-18 18:37:05 -05:00
|
|
|
],
|
|
|
|
)
|
2018-10-04 16:14:14 -04:00
|
|
|
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
|
|
|
|
2018-10-16 16:20:00 -04:00
|
|
|
# A nodejs_binary for @angular/bazel/ngc-wrapped to use by default in
|
|
|
|
# ng_module that depends on @npm//@angular/bazel instead of the
|
|
|
|
# output of the //packages/bazel/src/ngc-wrapped ts_library rule. This
|
|
|
|
# default is for downstream users that depend on the @angular/bazel npm
|
|
|
|
# package. The generated @npm//@angular/bazel/ngc-wrapped target
|
|
|
|
# does not work because it does not have the node `--expose-gc` flag
|
|
|
|
# set which is required to support the call to `global.gc()`.
|
2018-10-04 16:14:14 -04:00
|
|
|
nodejs_binary(
|
2018-10-16 16:20:00 -04:00
|
|
|
name = "@angular/bazel/ngc-wrapped",
|
2018-10-22 16:04:01 -04:00
|
|
|
configuration_env_vars = ["compile"],
|
2018-10-16 16:20:00 -04:00
|
|
|
data = ["@npm//@angular/bazel"],
|
|
|
|
entry_point = "@angular/bazel/src/ngc-wrapped/index.js",
|
2018-10-04 16:14:14 -04:00
|
|
|
install_source_map_support = False,
|
|
|
|
templated_args = ["--node_options=--expose-gc"],
|
|
|
|
)
|