60 lines
1.4 KiB
Python
60 lines
1.4 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "node_modules_filegroup")
|
|
|
|
exports_files([
|
|
"tsconfig.json",
|
|
"LICENSE",
|
|
])
|
|
|
|
# Developers should always run `bazel run :install`
|
|
# This ensures that package.json in subdirectories get installed as well.
|
|
alias(
|
|
name = "install",
|
|
actual = "@yarn//:yarn",
|
|
)
|
|
|
|
node_modules_filegroup(
|
|
name = "node_modules",
|
|
packages = [
|
|
"bytebuffer",
|
|
"hammerjs",
|
|
"jasmine",
|
|
"minimist",
|
|
"protobufjs",
|
|
"reflect-metadata",
|
|
"source-map-support",
|
|
"tsickle",
|
|
"tslib",
|
|
"tsutils",
|
|
"typescript",
|
|
"zone.js",
|
|
"@types",
|
|
"@webcomponents/custom-elements",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "web_test_bootstrap_scripts",
|
|
# 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",
|
|
"//:node_modules/zone.js/dist/task-tracking.js",
|
|
"//:node_modules/zone.js/dist/proxy.js",
|
|
"//:node_modules/zone.js/dist/jasmine-patch.js",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "angularjs",
|
|
# do not sort
|
|
srcs = [
|
|
"//:node_modules/angular/angular.js",
|
|
"//:node_modules/angular-mocks/angular-mocks.js",
|
|
],
|
|
)
|