2017-06-02 12:43:52 -04:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2017-12-17 18:10:54 -05:00
|
|
|
exports_files([
|
|
|
|
"tsconfig.json",
|
2018-03-01 13:41:35 -05:00
|
|
|
"LICENSE",
|
2017-12-17 18:10:54 -05:00
|
|
|
])
|
2017-06-02 12:43:52 -04:00
|
|
|
|
2018-03-01 13:41:35 -05:00
|
|
|
# Developers should always run `bazel run :install`
|
|
|
|
# This ensures that package.json in subdirectories get installed as well.
|
|
|
|
alias(
|
|
|
|
name = "install",
|
|
|
|
actual = "@yarn//:yarn",
|
|
|
|
)
|
|
|
|
|
2017-06-02 12:43:52 -04:00
|
|
|
# This rule belongs in node_modules/BUILD
|
|
|
|
# It's here as a workaround for
|
|
|
|
# https://github.com/bazelbuild/bazel/issues/374#issuecomment-296217940
|
|
|
|
filegroup(
|
|
|
|
name = "node_modules",
|
2017-08-30 01:09:55 -04:00
|
|
|
# Performance workaround: list individual files
|
|
|
|
# Reduces the number of files as inputs to nodejs_binary:
|
|
|
|
# bazel query "deps(:node_modules)" | wc -l
|
|
|
|
# This won't scale in the general case.
|
|
|
|
# TODO(alexeagle): figure out what to do
|
2017-12-06 09:56:49 -05:00
|
|
|
srcs = glob(["/".join([
|
|
|
|
"node_modules",
|
|
|
|
pkg,
|
|
|
|
"**",
|
|
|
|
ext,
|
|
|
|
]) for pkg in [
|
2017-10-13 12:03:28 -04:00
|
|
|
"jasmine",
|
2017-08-30 01:09:55 -04:00
|
|
|
"typescript",
|
|
|
|
"zone.js",
|
2017-12-06 09:56:49 -05:00
|
|
|
"tsutils",
|
2018-01-26 21:10:45 -05:00
|
|
|
"@types",
|
2017-08-30 01:09:55 -04:00
|
|
|
"tsickle",
|
|
|
|
"hammerjs",
|
|
|
|
"protobufjs",
|
|
|
|
"bytebuffer",
|
|
|
|
"reflect-metadata",
|
2017-12-06 09:56:49 -05:00
|
|
|
"source-map-support",
|
2017-08-30 01:09:55 -04:00
|
|
|
"minimist",
|
2018-02-28 12:45:11 -05:00
|
|
|
"@webcomponents/webcomponentsjs",
|
2018-02-02 18:25:33 -05:00
|
|
|
"tslib",
|
2017-08-30 01:09:55 -04:00
|
|
|
] for ext in [
|
|
|
|
"*.js",
|
|
|
|
"*.json",
|
|
|
|
"*.d.ts",
|
|
|
|
]]),
|
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 = [
|
|
|
|
"//:node_modules/reflect-metadata/Reflect.js",
|
|
|
|
"//:node_modules/zone.js/dist/zone.js",
|
|
|
|
"//:node_modules/zone.js/dist/async-test.js",
|
|
|
|
"//:node_modules/zone.js/dist/sync-test.js",
|
|
|
|
"//:node_modules/zone.js/dist/fake-async-test.js",
|
2017-04-27 14:44:14 -04:00
|
|
|
"//:node_modules/zone.js/dist/task-tracking.js",
|
2017-12-16 14:35:47 -05:00
|
|
|
"//:node_modules/zone.js/dist/proxy.js",
|
|
|
|
"//:node_modules/zone.js/dist/jasmine-patch.js",
|
|
|
|
],
|
|
|
|
)
|
2017-12-18 18:37:05 -05:00
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "angularjs",
|
|
|
|
# do not sort
|
|
|
|
srcs = [
|
|
|
|
"//:node_modules/angular/angular.js",
|
|
|
|
"//:node_modules/angular-mocks/angular-mocks.js",
|
|
|
|
],
|
|
|
|
)
|