build: upgrade bazel rules to latest (#20768)
Add enough BUILD files to make it possible to `bazel build packages/core/test` Also re-format BUILD.bazel files with Buildifier. Add a CI lint check that they stay formatted. PR Close #20768
This commit is contained in:
parent
073f485c72
commit
ef534c0cc1
@ -11,7 +11,7 @@
|
|||||||
anchor_1: &job_defaults
|
anchor_1: &job_defaults
|
||||||
working_directory: ~/ng
|
working_directory: ~/ng
|
||||||
docker:
|
docker:
|
||||||
- image: angular/ngcontainer:0.0.6
|
- image: angular/ngcontainer:0.0.7
|
||||||
|
|
||||||
# After checkout, rebase on top of master.
|
# After checkout, rebase on top of master.
|
||||||
# Similar to travis behavior, but not quite the same.
|
# Similar to travis behavior, but not quite the same.
|
||||||
@ -26,6 +26,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
<<: *post_checkout
|
<<: *post_checkout
|
||||||
|
# Check BUILD.bazel formatting before we have a node_modules directory
|
||||||
|
# Then we don't need any exclude pattern to avoid checking those files
|
||||||
|
- run: buildifier -mode=diff $(find . -iname BUILD.bazel -type f)
|
||||||
|
- run: buildifier -mode=check $(find . -iname BUILD.bazel -type f)
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||||
|
|
||||||
@ -41,8 +46,8 @@ jobs:
|
|||||||
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||||
- run: bazel info release
|
- run: bazel info release
|
||||||
- run: bazel run @yarn//:yarn
|
- run: bazel run @yarn//:yarn
|
||||||
- run: bazel build packages/...
|
- run: bazel build --config=ci packages/...
|
||||||
- run: bazel test @angular//...
|
- run: bazel test --config=ci packages/... @angular//...
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||||
paths:
|
paths:
|
||||||
|
15
BUILD.bazel
15
BUILD.bazel
@ -1,4 +1,5 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
exports_files(["tsconfig.json"])
|
exports_files(["tsconfig.json"])
|
||||||
|
|
||||||
# This rule belongs in node_modules/BUILD
|
# This rule belongs in node_modules/BUILD
|
||||||
@ -11,17 +12,25 @@ filegroup(
|
|||||||
# bazel query "deps(:node_modules)" | wc -l
|
# bazel query "deps(:node_modules)" | wc -l
|
||||||
# This won't scale in the general case.
|
# This won't scale in the general case.
|
||||||
# TODO(alexeagle): figure out what to do
|
# TODO(alexeagle): figure out what to do
|
||||||
srcs = glob(["/".join(["node_modules", pkg, "**", ext]) for pkg in [
|
srcs = glob(["/".join([
|
||||||
|
"node_modules",
|
||||||
|
pkg,
|
||||||
|
"**",
|
||||||
|
ext,
|
||||||
|
]) for pkg in [
|
||||||
"jasmine",
|
"jasmine",
|
||||||
"typescript",
|
"typescript",
|
||||||
"zone.js",
|
"zone.js",
|
||||||
"rxjs",
|
"tsutils",
|
||||||
"@types",
|
"@types/jasmine",
|
||||||
|
"@types/node",
|
||||||
|
"@types/source-map",
|
||||||
"tsickle",
|
"tsickle",
|
||||||
"hammerjs",
|
"hammerjs",
|
||||||
"protobufjs",
|
"protobufjs",
|
||||||
"bytebuffer",
|
"bytebuffer",
|
||||||
"reflect-metadata",
|
"reflect-metadata",
|
||||||
|
"source-map-support",
|
||||||
"minimist",
|
"minimist",
|
||||||
] for ext in [
|
] for ext in [
|
||||||
"*.js",
|
"*.js",
|
||||||
|
16
WORKSPACE
16
WORKSPACE
@ -5,19 +5,29 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|||||||
git_repository(
|
git_repository(
|
||||||
name = "build_bazel_rules_nodejs",
|
name = "build_bazel_rules_nodejs",
|
||||||
remote = "https://github.com/bazelbuild/rules_nodejs.git",
|
remote = "https://github.com/bazelbuild/rules_nodejs.git",
|
||||||
commit = "0.2.1",
|
tag = "0.3.1",
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
|
||||||
|
|
||||||
node_repositories(package_json = ["//:package.json"])
|
node_repositories(package_json = ["//:package.json"])
|
||||||
|
|
||||||
local_repository(
|
git_repository(
|
||||||
name = "build_bazel_rules_typescript",
|
name = "build_bazel_rules_typescript",
|
||||||
path = "node_modules/@bazel/typescript",
|
remote = "https://github.com/bazelbuild/rules_typescript.git",
|
||||||
|
tag = "0.6.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_repositories")
|
||||||
|
|
||||||
|
ts_repositories()
|
||||||
|
|
||||||
local_repository(
|
local_repository(
|
||||||
name = "angular",
|
name = "angular",
|
||||||
path = "packages/bazel",
|
path = "packages/bazel",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local_repository(
|
||||||
|
name = "rxjs",
|
||||||
|
path = "node_modules/rxjs/src",
|
||||||
|
)
|
||||||
|
@ -2,9 +2,25 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "node_modules",
|
name = "node_modules",
|
||||||
srcs = glob([
|
# Workaround https://github.com/bazelbuild/bazel/issues/4242
|
||||||
"node_modules/**/*.js",
|
# Can't just glob(["node_modules/**/*.{js,d.ts,json}"])
|
||||||
"node_modules/**/*.d.ts",
|
srcs = glob(["/".join([
|
||||||
"node_modules/**/*.json",
|
"node_modules",
|
||||||
])
|
pkg,
|
||||||
|
"**",
|
||||||
|
ext,
|
||||||
|
]) for pkg in [
|
||||||
|
"@angular",
|
||||||
|
"@types",
|
||||||
|
"bytebuffer",
|
||||||
|
"protobufjs",
|
||||||
|
"reflect-metadata",
|
||||||
|
"tsickle",
|
||||||
|
"typescript",
|
||||||
|
"zone.js",
|
||||||
|
] for ext in [
|
||||||
|
"*.js",
|
||||||
|
"*.json",
|
||||||
|
"*.d.ts",
|
||||||
|
]]),
|
||||||
)
|
)
|
||||||
|
@ -1,24 +1,36 @@
|
|||||||
|
workspace(name = "bazel_integration_test")
|
||||||
|
|
||||||
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
||||||
|
|
||||||
git_repository(
|
git_repository(
|
||||||
name = "build_bazel_rules_nodejs",
|
name = "build_bazel_rules_nodejs",
|
||||||
remote = "https://github.com/bazelbuild/rules_nodejs.git",
|
remote = "https://github.com/bazelbuild/rules_nodejs.git",
|
||||||
tag = "0.2.1",
|
tag = "0.3.1",
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
|
||||||
node_repositories(package_json = ["//:package.json"])
|
node_repositories(package_json = ["//:package.json"])
|
||||||
|
|
||||||
local_repository(
|
git_repository(
|
||||||
name = "build_bazel_rules_typescript",
|
name = "build_bazel_rules_typescript",
|
||||||
path = "node_modules/@bazel/typescript",
|
remote = "https://github.com/bazelbuild/rules_typescript.git",
|
||||||
|
tag = "0.6.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_repositories")
|
||||||
|
|
||||||
|
ts_repositories()
|
||||||
|
|
||||||
local_repository(
|
local_repository(
|
||||||
name = "angular",
|
name = "angular",
|
||||||
path = "node_modules/@angular/bazel",
|
path = "node_modules/@angular/bazel",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local_repository(
|
||||||
|
name = "rxjs",
|
||||||
|
path = "node_modules/rxjs/src",
|
||||||
|
)
|
||||||
|
|
||||||
git_repository(
|
git_repository(
|
||||||
name = "io_bazel_rules_sass",
|
name = "io_bazel_rules_sass",
|
||||||
remote = "https://github.com/bazelbuild/rules_sass.git",
|
remote = "https://github.com/bazelbuild/rules_sass.git",
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "ngc -p angular.tsconfig.json",
|
"postinstall": "ngc -p angular.tsconfig.json",
|
||||||
"test": "bazel build ... --noshow_progress"
|
"test": "WORKAROUND https://github.com/bazelbuild/bazel/issues/4242, can't build ...",
|
||||||
|
"test": "bazel build //src/... --noshow_progress"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,6 +6,6 @@ exports_files(["tsconfig.json"])
|
|||||||
ng_module(
|
ng_module(
|
||||||
name = "src",
|
name = "src",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
deps = ["//src/hello-world"],
|
|
||||||
tsconfig = ":tsconfig.json",
|
tsconfig = ":tsconfig.json",
|
||||||
|
deps = ["//src/hello-world"],
|
||||||
)
|
)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@angular//:index.bzl", "ng_module")
|
load("@angular//:index.bzl", "ng_module")
|
||||||
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
|
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_binary")
|
||||||
|
|
||||||
@ -10,6 +11,9 @@ sass_binary(
|
|||||||
ng_module(
|
ng_module(
|
||||||
name = "hello-world",
|
name = "hello-world",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
tsconfig = "//src:tsconfig.json",
|
|
||||||
assets = [":hello-world-styles.css"],
|
assets = [":hello-world-styles.css"],
|
||||||
|
tsconfig = "//src:tsconfig.json",
|
||||||
|
# FIXME(alexeagle): the rxjs dep should come from Angular, but if we use the
|
||||||
|
# npm distro of angular there is no ts_library rule to propagate the dep.
|
||||||
|
deps = ["@rxjs"],
|
||||||
)
|
)
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "^0.1.3",
|
||||||
"rxjs": "^5.5.2",
|
"rxjs": "5.5.5",
|
||||||
"tslib": "^1.7.1",
|
"tslib": "^1.7.1",
|
||||||
"zone.js": "^0.8.12"
|
"zone.js": "^0.8.12"
|
||||||
},
|
},
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"fsevents": "1.1.2"
|
"fsevents": "1.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@bazel/typescript": "0.3.2",
|
"@bazel/ibazel": "^0.1.1",
|
||||||
"@types/angularjs": "1.5.14-alpha",
|
"@types/angularjs": "1.5.14-alpha",
|
||||||
"@types/base64-js": "1.2.5",
|
"@types/base64-js": "1.2.5",
|
||||||
"@types/chokidar": "1.7.3",
|
"@types/chokidar": "1.7.3",
|
||||||
@ -97,6 +97,7 @@
|
|||||||
"tsickle": "0.25.5",
|
"tsickle": "0.25.5",
|
||||||
"tslint": "5.7.0",
|
"tslint": "5.7.0",
|
||||||
"tslint-eslint-rules": "4.1.1",
|
"tslint-eslint-rules": "4.1.1",
|
||||||
|
"tsutils": "2.12.1",
|
||||||
"typescript": "2.5.x",
|
"typescript": "2.5.x",
|
||||||
"uglify-js": "2.8.29",
|
"uglify-js": "2.8.29",
|
||||||
"universal-analytics": "0.4.15",
|
"universal-analytics": "0.4.15",
|
||||||
|
@ -1 +1,20 @@
|
|||||||
exports_files(["tsconfig-build.json"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
exports_files([
|
||||||
|
"tsconfig-build.json",
|
||||||
|
"tsconfig.json",
|
||||||
|
])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_config", "ts_library")
|
||||||
|
|
||||||
|
ts_config(
|
||||||
|
name = "tsconfig",
|
||||||
|
src = ":tsconfig-build.json",
|
||||||
|
deps = [],
|
||||||
|
)
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "types",
|
||||||
|
srcs = glob(["*.ts"]),
|
||||||
|
tsconfig = ":tsconfig",
|
||||||
|
)
|
||||||
|
18
packages/animations/BUILD.bazel
Normal file
18
packages/animations/BUILD.bazel
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "animations",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/animations",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
],
|
||||||
|
)
|
18
packages/animations/browser/BUILD.bazel
Normal file
18
packages/animations/browser/BUILD.bazel
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "browser",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/animations/browser",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/animations",
|
||||||
|
],
|
||||||
|
)
|
17
packages/animations/browser/test/BUILD.bazel
Normal file
17
packages/animations/browser/test/BUILD.bazel
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "test",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/animations",
|
||||||
|
"//packages/animations/browser",
|
||||||
|
"//packages/animations/browser/testing",
|
||||||
|
"//packages/core",
|
||||||
|
],
|
||||||
|
)
|
@ -53,13 +53,13 @@ export function main() {
|
|||||||
player.onStart(() => log.push('started'));
|
player.onStart(() => log.push('started'));
|
||||||
player.onDone(() => log.push('done'));
|
player.onDone(() => log.push('done'));
|
||||||
|
|
||||||
player.triggerCallback('start');
|
(player as any).triggerCallback('start');
|
||||||
expect(log).toEqual(['started']);
|
expect(log).toEqual(['started']);
|
||||||
|
|
||||||
player.play();
|
player.play();
|
||||||
expect(log).toEqual(['started']);
|
expect(log).toEqual(['started']);
|
||||||
|
|
||||||
player.triggerCallback('done');
|
(player as any).triggerCallback('done');
|
||||||
expect(log).toEqual(['started', 'done']);
|
expect(log).toEqual(['started', 'done']);
|
||||||
|
|
||||||
player.finish();
|
player.finish();
|
||||||
|
15
packages/animations/browser/testing/BUILD.bazel
Normal file
15
packages/animations/browser/testing/BUILD.bazel
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/animations/browser/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/animations",
|
||||||
|
"//packages/animations/browser",
|
||||||
|
],
|
||||||
|
)
|
15
packages/animations/test/BUILD.bazel
Normal file
15
packages/animations/test/BUILD.bazel
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "test",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["test/**/*.ts"]),
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/animations",
|
||||||
|
"//packages/core/testing",
|
||||||
|
],
|
||||||
|
)
|
@ -49,13 +49,13 @@ export function main() {
|
|||||||
player.onDone(() => log.push('done'));
|
player.onDone(() => log.push('done'));
|
||||||
flushMicrotasks();
|
flushMicrotasks();
|
||||||
|
|
||||||
player.triggerCallback('start');
|
(player as any).triggerCallback('start');
|
||||||
expect(log).toEqual(['started']);
|
expect(log).toEqual(['started']);
|
||||||
|
|
||||||
player.play();
|
player.play();
|
||||||
expect(log).toEqual(['started']);
|
expect(log).toEqual(['started']);
|
||||||
|
|
||||||
player.triggerCallback('done');
|
(player as any).triggerCallback('done');
|
||||||
expect(log).toEqual(['started', 'done']);
|
expect(log).toEqual(['started', 'done']);
|
||||||
|
|
||||||
player.finish();
|
player.finish();
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
"typescript": ">=2.4.2 <2.6"
|
"typescript": ">=2.4.2 <2.6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bazel/typescript": "0.3.2",
|
|
||||||
"@types/node": "6.0.84"
|
"@types/node": "6.0.84"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -4,41 +4,42 @@ load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
|||||||
ts_library(
|
ts_library(
|
||||||
name = "ngc_lib",
|
name = "ngc_lib",
|
||||||
srcs = [
|
srcs = [
|
||||||
"index.ts",
|
|
||||||
"extract_i18n.ts",
|
"extract_i18n.ts",
|
||||||
|
"index.ts",
|
||||||
],
|
],
|
||||||
module_name = "@angular/bazel",
|
module_name = "@angular/bazel",
|
||||||
|
tsconfig = ":tsconfig.json",
|
||||||
|
visibility = ["//test/ngc-wrapped:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
# BEGIN-INTERNAL
|
# BEGIN-INTERNAL
|
||||||
# Only needed when compiling within the Angular repo.
|
# Only needed when compiling within the Angular repo.
|
||||||
# Users will get this dependency from node_modules.
|
# Users will get this dependency from node_modules.
|
||||||
"@//packages/compiler-cli",
|
"@//packages/compiler-cli",
|
||||||
# END-INTERNAL
|
# END-INTERNAL
|
||||||
"@build_bazel_rules_typescript//internal/tsc_wrapped"
|
"@build_bazel_rules_typescript//internal/tsc_wrapped",
|
||||||
],
|
],
|
||||||
tsconfig = ":tsconfig.json",
|
|
||||||
visibility = ["//test/ngc-wrapped:__subpackages__"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
nodejs_binary(
|
nodejs_binary(
|
||||||
name = "ngc-wrapped",
|
name = "ngc-wrapped",
|
||||||
|
data = [
|
||||||
|
":ngc_lib",
|
||||||
|
"@build_bazel_rules_typescript//internal:worker_protocol.proto",
|
||||||
|
],
|
||||||
# Entry point assumes the user is outside this WORKSPACE,
|
# Entry point assumes the user is outside this WORKSPACE,
|
||||||
# and references our rules with @angular//src/ngc-wrapped
|
# and references our rules with @angular//src/ngc-wrapped
|
||||||
entry_point = "angular/src/ngc-wrapped/index.js",
|
entry_point = "angular/src/ngc-wrapped/index.js",
|
||||||
data = [
|
node_modules = "@build_bazel_rules_typescript_deps//:node_modules",
|
||||||
":ngc_lib",
|
|
||||||
"@build_bazel_rules_typescript//internal:worker_protocol.proto"
|
|
||||||
],
|
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
nodejs_binary(
|
nodejs_binary(
|
||||||
name = "xi18n",
|
name = "xi18n",
|
||||||
# Entry point assumes the user is outside this WORKSPACE,
|
|
||||||
# and references our rules with @angular//src/ngc-wrapped
|
|
||||||
entry_point = "angular/src/ngc-wrapped/index.js/extract_i18n.js",
|
|
||||||
data = [
|
data = [
|
||||||
":ngc_lib",
|
":ngc_lib",
|
||||||
],
|
],
|
||||||
|
# Entry point assumes the user is outside this WORKSPACE,
|
||||||
|
# and references our rules with @angular//src/ngc-wrapped
|
||||||
|
entry_point = "angular/src/ngc-wrapped/index.js/extract_i18n.js",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
@ -8,32 +8,32 @@ ts_library(
|
|||||||
"test_support.ts",
|
"test_support.ts",
|
||||||
"tsconfig_template.ts",
|
"tsconfig_template.ts",
|
||||||
],
|
],
|
||||||
|
tsconfig = ":tsconfig.json",
|
||||||
deps = [
|
deps = [
|
||||||
# BEGIN-INTERNAL
|
# BEGIN-INTERNAL
|
||||||
# Only needed when compiling within the Angular repo.
|
# Only needed when compiling within the Angular repo.
|
||||||
# Users will get this dependency from node_modules.
|
# Users will get this dependency from node_modules.
|
||||||
"@//packages/compiler-cli",
|
"@//packages/compiler-cli",
|
||||||
# END-INTERNAL
|
# END-INTERNAL
|
||||||
"//src/ngc-wrapped:ngc_lib"
|
"//src/ngc-wrapped:ngc_lib",
|
||||||
],
|
],
|
||||||
tsconfig = ":tsconfig.json",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# We need a filegroup so that we can refer
|
# We need a filegroup so that we can refer
|
||||||
# .d.ts files (by default, jasmine_node_test would get the .js files).
|
# .d.ts files (by default, jasmine_node_test would get the .js files).
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "angular_core",
|
name = "angular_core",
|
||||||
srcs = ["@//packages/core"]
|
srcs = ["@//packages/core"],
|
||||||
)
|
)
|
||||||
|
|
||||||
jasmine_node_test(
|
jasmine_node_test(
|
||||||
name = "ngc_test",
|
name = "ngc_test",
|
||||||
|
size = "small",
|
||||||
srcs = [":ngc_test_lib"],
|
srcs = [":ngc_test_lib"],
|
||||||
data = [
|
data = [
|
||||||
"@build_bazel_rules_typescript//internal:worker_protocol.proto",
|
|
||||||
":angular_core",
|
":angular_core",
|
||||||
"//test/ngc-wrapped/empty:empty_tsconfig.json",
|
"//test/ngc-wrapped/empty:empty_tsconfig.json",
|
||||||
"//test/ngc-wrapped/empty:tsconfig.json",
|
"//test/ngc-wrapped/empty:tsconfig.json",
|
||||||
|
"@build_bazel_rules_typescript//internal:worker_protocol.proto",
|
||||||
],
|
],
|
||||||
size="small",
|
|
||||||
)
|
)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
load("@angular//:index.bzl", "ng_module")
|
load("@angular//:index.bzl", "ng_module")
|
||||||
|
|
||||||
package(default_visibility=["//test:__subpackages__"])
|
package(default_visibility = ["//test:__subpackages__"])
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "empty",
|
name = "empty",
|
||||||
srcs = ["empty.ts"],
|
srcs = ["empty.ts"],
|
||||||
deps = ["@//packages/core"],
|
|
||||||
tsconfig = ":tsconfig.json",
|
tsconfig = ":tsconfig.json",
|
||||||
|
deps = ["@//packages/core"],
|
||||||
)
|
)
|
||||||
|
@ -40,7 +40,7 @@ export function setup(
|
|||||||
bazelBin?: string,
|
bazelBin?: string,
|
||||||
tsconfig?: string,
|
tsconfig?: string,
|
||||||
} = {}): TestSupport {
|
} = {}): TestSupport {
|
||||||
const runfilesPath = process.env['RUNFILES'];
|
const runfilesPath = process.env['TEST_SRCDIR'];
|
||||||
|
|
||||||
const basePath = makeTempDir(runfilesPath);
|
const basePath = makeTempDir(runfilesPath);
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ function makeTempDir(baseDir): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function listFilesRecursive(dir: string, fileList: string[] = []) {
|
export function listFilesRecursive(dir: string, fileList: string[] = []) {
|
||||||
fs.readdirSync(dir).map(file => {
|
fs.readdirSync(dir).forEach(file => {
|
||||||
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
||||||
listFilesRecursive(path.join(dir, file), fileList);
|
listFilesRecursive(path.join(dir, file), fileList);
|
||||||
} else {
|
} else {
|
||||||
|
@ -68,6 +68,9 @@ export function createTsConfig(options: TsConfigOptions) {
|
|||||||
// Because we ask for :empty_tsconfig.json, we get the ES6 version which
|
// Because we ask for :empty_tsconfig.json, we get the ES6 version which
|
||||||
// expects to write externs, yet that doesn't work under this fixture.
|
// expects to write externs, yet that doesn't work under this fixture.
|
||||||
'tsickleExternsPath': '',
|
'tsickleExternsPath': '',
|
||||||
|
// we don't copy the node_modules into our tmp dir, so we should look in
|
||||||
|
// the original workspace directory for it
|
||||||
|
'nodeModulesPrefix': '../angular_src/node_modules',
|
||||||
},
|
},
|
||||||
'files': options.files,
|
'files': options.files,
|
||||||
'angularCompilerOptions': {
|
'angularCompilerOptions': {
|
||||||
|
@ -1,15 +1,19 @@
|
|||||||
package(default_visibility=["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "common",
|
name = "common",
|
||||||
srcs = glob(["**/*.ts"], exclude=[
|
srcs = glob(
|
||||||
"http/**",
|
[
|
||||||
"locales/**",
|
"*.ts",
|
||||||
"test/**",
|
"src/**/*.ts",
|
||||||
"testing/**",
|
],
|
||||||
]),
|
),
|
||||||
module_name = "@angular/common",
|
module_name = "@angular/common",
|
||||||
deps = ["//packages/core"],
|
tsconfig = "//packages:tsconfig",
|
||||||
tsconfig = ":tsconfig-build.json",
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
20
packages/common/http/BUILD.bazel
Normal file
20
packages/common/http/BUILD.bazel
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "http",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/common/http",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/core",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
14
packages/common/http/testing/BUILD.bazel
Normal file
14
packages/common/http/testing/BUILD.bazel
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["testing/**/*.ts"]),
|
||||||
|
module_name = "@angular/common/http/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/common/http",
|
||||||
|
],
|
||||||
|
)
|
16
packages/common/testing/BUILD.bazel
Normal file
16
packages/common/testing/BUILD.bazel
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/common/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/core",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
@ -1,21 +1,24 @@
|
|||||||
package(default_visibility=["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_config")
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_config")
|
||||||
|
|
||||||
ts_config(
|
ts_config(
|
||||||
name = "tsconfig",
|
name = "tsconfig",
|
||||||
src = "tsconfig-build.json",
|
src = "tsconfig-build.json",
|
||||||
deps = ["//packages:tsconfig-build.json"]
|
deps = ["//packages:tsconfig-build.json"],
|
||||||
)
|
)
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "compiler-cli",
|
name = "compiler-cli",
|
||||||
srcs = glob(["**/*.ts"], exclude=[
|
srcs = glob(
|
||||||
"integrationtest/**",
|
[
|
||||||
"test/**",
|
"*.ts",
|
||||||
]),
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
module_name = "@angular/compiler-cli",
|
module_name = "@angular/compiler-cli",
|
||||||
deps = [
|
|
||||||
"//packages/compiler"
|
|
||||||
],
|
|
||||||
tsconfig = ":tsconfig",
|
tsconfig = ":tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/compiler",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
package(default_visibility=["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = "compiler",
|
name = "compiler",
|
||||||
srcs = glob(["**/*.ts"], exclude=[
|
srcs = glob(
|
||||||
"test/**",
|
[
|
||||||
"testing/**",
|
"*.ts",
|
||||||
]),
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
module_name = "@angular/compiler",
|
module_name = "@angular/compiler",
|
||||||
tsconfig = ":tsconfig-build.json",
|
tsconfig = "//packages:tsconfig",
|
||||||
)
|
)
|
||||||
|
@ -43,8 +43,6 @@ const TAG_TO_PLACEHOLDER_NAMES: {[k: string]: string} = {
|
|||||||
* Creates unique names for placeholder with different content.
|
* Creates unique names for placeholder with different content.
|
||||||
*
|
*
|
||||||
* Returns the same placeholder name when the content is identical.
|
* Returns the same placeholder name when the content is identical.
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*/
|
*/
|
||||||
export class PlaceholderRegistry {
|
export class PlaceholderRegistry {
|
||||||
// Count the occurrence of the base name top generate a unique name
|
// Count the occurrence of the base name top generate a unique name
|
||||||
|
22
packages/compiler/test/BUILD.bazel
Normal file
22
packages/compiler/test/BUILD.bazel
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "test",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/compiler",
|
||||||
|
"//packages/compiler-cli",
|
||||||
|
"//packages/compiler/testing",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/core/testing",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"//packages/platform-browser-dynamic",
|
||||||
|
"//packages/platform-browser/testing",
|
||||||
|
],
|
||||||
|
)
|
@ -33,7 +33,7 @@ describe('StaticReflector', () => {
|
|||||||
beforeEach(() => init());
|
beforeEach(() => init());
|
||||||
|
|
||||||
function simplify(context: StaticSymbol, value: any) {
|
function simplify(context: StaticSymbol, value: any) {
|
||||||
return reflector.simplify(context, value);
|
return (reflector as any).simplify(context, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
it('should get annotations for NgFor', () => {
|
it('should get annotations for NgFor', () => {
|
||||||
@ -1079,11 +1079,11 @@ describe('StaticReflector', () => {
|
|||||||
'/tmp/root.ts': ``,
|
'/tmp/root.ts': ``,
|
||||||
'/tmp/a.ts': `export const x = 1;`,
|
'/tmp/a.ts': `export const x = 1;`,
|
||||||
});
|
});
|
||||||
let symbol =
|
let symbol = reflector.resolveExternalReference(
|
||||||
reflector.resolveExternalReference({moduleName: './a', name: 'x'}, '/tmp/root.ts');
|
{moduleName: './a', name: 'x', runtime: null}, '/tmp/root.ts');
|
||||||
expect(symbolResolver.getKnownModuleName(symbol.filePath)).toBeFalsy();
|
expect(symbolResolver.getKnownModuleName(symbol.filePath)).toBeFalsy();
|
||||||
|
|
||||||
symbol = reflector.resolveExternalReference({moduleName: 'a', name: 'x'});
|
symbol = reflector.resolveExternalReference({moduleName: 'a', name: 'x', runtime: null});
|
||||||
expect(symbolResolver.getKnownModuleName(symbol.filePath)).toBe('a');
|
expect(symbolResolver.getKnownModuleName(symbol.filePath)).toBe('a');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
12
packages/compiler/testing/BUILD.bazel
Normal file
12
packages/compiler/testing/BUILD.bazel
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/compiler/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = ["//packages/compiler"],
|
||||||
|
)
|
@ -1,13 +1,19 @@
|
|||||||
package(default_visibility=["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@angular//:index.bzl", "ng_module")
|
load("@angular//:index.bzl", "ng_module")
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
ng_module(
|
ng_module(
|
||||||
name = "core",
|
name = "core",
|
||||||
srcs = glob(["**/*.ts"], exclude=[
|
srcs = glob(
|
||||||
"test/**",
|
[
|
||||||
"testing/**",
|
"*.ts",
|
||||||
]),
|
"src/**/*.ts",
|
||||||
module_name = "@angular/core",
|
],
|
||||||
tsconfig = ":tsconfig-build.json",
|
),
|
||||||
)
|
module_name = "@angular/core",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
@ -51,9 +51,6 @@ export class ReflectiveKey {
|
|||||||
static get numberOfKeys(): number { return _globalKeyRegistry.numberOfKeys; }
|
static get numberOfKeys(): number { return _globalKeyRegistry.numberOfKeys; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
export class KeyRegistry {
|
export class KeyRegistry {
|
||||||
private _allKeys = new Map<Object, ReflectiveKey>();
|
private _allKeys = new Map<Object, ReflectiveKey>();
|
||||||
|
|
||||||
|
@ -313,8 +313,6 @@ function onLeave(zone: NgZonePrivate) {
|
|||||||
/**
|
/**
|
||||||
* Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
|
* Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
|
||||||
* to framework to perform rendering.
|
* to framework to perform rendering.
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*/
|
*/
|
||||||
export class NoopNgZone implements NgZone {
|
export class NoopNgZone implements NgZone {
|
||||||
readonly hasPendingMicrotasks: boolean = false;
|
readonly hasPendingMicrotasks: boolean = false;
|
||||||
|
43
packages/core/test/BUILD.bazel
Normal file
43
packages/core/test/BUILD.bazel
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "test_lib",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/animations",
|
||||||
|
"//packages/animations/browser",
|
||||||
|
"//packages/animations/browser/testing",
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/compiler",
|
||||||
|
"//packages/compiler/test",
|
||||||
|
"//packages/compiler/testing",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/core/testing",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"//packages/platform-browser-dynamic",
|
||||||
|
"//packages/platform-browser/animations",
|
||||||
|
"//packages/platform-browser/testing",
|
||||||
|
"//packages/platform-server",
|
||||||
|
"//packages/router",
|
||||||
|
"//packages/router/testing",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
# TODO(mhevery): re-enable when passing
|
||||||
|
jasmine_node_test(
|
||||||
|
name = "test",
|
||||||
|
srcs = [],
|
||||||
|
bootstrap = [
|
||||||
|
"zone.js/dist/zone-node.js",
|
||||||
|
],
|
||||||
|
tags = ["manual"],
|
||||||
|
deps = [
|
||||||
|
":test_lib",
|
||||||
|
],
|
||||||
|
)
|
@ -15,13 +15,13 @@ export function main() {
|
|||||||
|
|
||||||
it('should return true for `done`',
|
it('should return true for `done`',
|
||||||
async(inject([ApplicationInitStatus], (status: ApplicationInitStatus) => {
|
async(inject([ApplicationInitStatus], (status: ApplicationInitStatus) => {
|
||||||
status.runInitializers();
|
(status as any).runInitializers();
|
||||||
expect(status.done).toBe(true);
|
expect(status.done).toBe(true);
|
||||||
})));
|
})));
|
||||||
|
|
||||||
it('should return a promise that resolves immediately for `donePromise`',
|
it('should return a promise that resolves immediately for `donePromise`',
|
||||||
async(inject([ApplicationInitStatus], (status: ApplicationInitStatus) => {
|
async(inject([ApplicationInitStatus], (status: ApplicationInitStatus) => {
|
||||||
status.runInitializers();
|
(status as any).runInitializers();
|
||||||
status.donePromise.then(() => { expect(status.done).toBe(true); });
|
status.donePromise.then(() => { expect(status.done).toBe(true); });
|
||||||
})));
|
})));
|
||||||
});
|
});
|
||||||
@ -53,7 +53,7 @@ export function main() {
|
|||||||
|
|
||||||
it('should update the status once all async initializers are done',
|
it('should update the status once all async initializers are done',
|
||||||
async(inject([ApplicationInitStatus], (status: ApplicationInitStatus) => {
|
async(inject([ApplicationInitStatus], (status: ApplicationInitStatus) => {
|
||||||
status.runInitializers();
|
(status as any).runInitializers();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
completerResolver = true;
|
completerResolver = true;
|
||||||
|
@ -52,7 +52,7 @@ export function main() {
|
|||||||
options = providersOrOptions || {};
|
options = providersOrOptions || {};
|
||||||
}
|
}
|
||||||
const errorHandler = new ErrorHandler();
|
const errorHandler = new ErrorHandler();
|
||||||
errorHandler._console = mockConsole as any;
|
(errorHandler as any)._console = mockConsole as any;
|
||||||
|
|
||||||
const platformModule = getDOM().supportsDOMEvents() ? BrowserModule : ServerModule;
|
const platformModule = getDOM().supportsDOMEvents() ? BrowserModule : ServerModule;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ export function main() {
|
|||||||
function errorToString(error: any) {
|
function errorToString(error: any) {
|
||||||
const logger = new MockConsole();
|
const logger = new MockConsole();
|
||||||
const errorHandler = new ErrorHandler();
|
const errorHandler = new ErrorHandler();
|
||||||
errorHandler._console = logger as any;
|
(errorHandler as any)._console = logger as any;
|
||||||
errorHandler.handleError(error);
|
errorHandler.handleError(error);
|
||||||
return logger.res.map(line => line.join('#')).join('\n');
|
return logger.res.map(line => line.join('#')).join('\n');
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ ERROR CONTEXT#Context`);
|
|||||||
const err = new Error('test');
|
const err = new Error('test');
|
||||||
const console = new MockConsole();
|
const console = new MockConsole();
|
||||||
const errorHandler = new ErrorHandler();
|
const errorHandler = new ErrorHandler();
|
||||||
errorHandler._console = console as any;
|
(errorHandler as any)._console = console as any;
|
||||||
const logger = jasmine.createSpy('logger');
|
const logger = jasmine.createSpy('logger');
|
||||||
(err as any)[ERROR_LOGGER] = logger;
|
(err as any)[ERROR_LOGGER] = logger;
|
||||||
|
|
||||||
|
@ -409,7 +409,7 @@ function declareTestsUsingBootstrap() {
|
|||||||
|
|
||||||
logger = new MockConsole();
|
logger = new MockConsole();
|
||||||
errorHandler = new ErrorHandler();
|
errorHandler = new ErrorHandler();
|
||||||
errorHandler._console = logger as any;
|
(errorHandler as any)._console = logger as any;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
afterEach(() => { destroyPlatform(); });
|
afterEach(() => { destroyPlatform(); });
|
||||||
|
15
packages/core/testing/BUILD.bazel
Normal file
15
packages/core/testing/BUILD.bazel
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/core/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/core",
|
||||||
|
],
|
||||||
|
)
|
20
packages/http/BUILD.bazel
Normal file
20
packages/http/BUILD.bazel
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "http",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/http",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
16
packages/http/testing/BUILD.bazel
Normal file
16
packages/http/testing/BUILD.bazel
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/http/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/http",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
23
packages/platform-browser-dynamic/BUILD.bazel
Normal file
23
packages/platform-browser-dynamic/BUILD.bazel
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@angular//:index.bzl", "ng_module")
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "platform-browser-dynamic",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/platform-browser-dynamic",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/compiler",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
],
|
||||||
|
)
|
20
packages/platform-browser-dynamic/testing/BUILD.bazel
Normal file
20
packages/platform-browser-dynamic/testing/BUILD.bazel
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/platform-browser-dynamic/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/compiler",
|
||||||
|
"//packages/compiler/testing",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/core/testing",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"//packages/platform-browser-dynamic",
|
||||||
|
"//packages/platform-browser/testing",
|
||||||
|
],
|
||||||
|
)
|
21
packages/platform-browser/BUILD.bazel
Normal file
21
packages/platform-browser/BUILD.bazel
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@angular//:index.bzl", "ng_module")
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "platform-browser",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/platform-browser",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/core",
|
||||||
|
],
|
||||||
|
)
|
21
packages/platform-browser/animations/BUILD.bazel
Normal file
21
packages/platform-browser/animations/BUILD.bazel
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "animations",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/platform-browser/animations",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/animations",
|
||||||
|
"//packages/animations/browser",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
],
|
||||||
|
)
|
16
packages/platform-browser/testing/BUILD.bazel
Normal file
16
packages/platform-browser/testing/BUILD.bazel
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/platform-browser/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
27
packages/platform-server/BUILD.bazel
Normal file
27
packages/platform-server/BUILD.bazel
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "platform-server",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/platform-server",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/animations/browser",
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/common/http",
|
||||||
|
"//packages/compiler",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/http",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"//packages/platform-browser-dynamic",
|
||||||
|
"//packages/platform-browser/animations",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
17
packages/platform-server/testing/BUILD.bazel
Normal file
17
packages/platform-server/testing/BUILD.bazel
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/platform-server/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser-dynamic/testing",
|
||||||
|
"//packages/platform-browser/animations",
|
||||||
|
"//packages/platform-server",
|
||||||
|
],
|
||||||
|
)
|
22
packages/router/BUILD.bazel
Normal file
22
packages/router/BUILD.bazel
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "router",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/router",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"//packages/upgrade/static",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
17
packages/router/testing/BUILD.bazel
Normal file
17
packages/router/testing/BUILD.bazel
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/router/testing",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/common/testing",
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/router",
|
||||||
|
],
|
||||||
|
)
|
20
packages/service-worker/BUILD.bazel
Normal file
20
packages/service-worker/BUILD.bazel
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "service-worker",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
),
|
||||||
|
module_name = "@angular/service-worker",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/common",
|
||||||
|
"//packages/core",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
21
packages/service-worker/worker/BUILD.bazel
Normal file
21
packages/service-worker/worker/BUILD.bazel
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "worker",
|
||||||
|
srcs = glob(
|
||||||
|
[
|
||||||
|
"*.ts",
|
||||||
|
"src/**/*.ts",
|
||||||
|
],
|
||||||
|
exclude = ["main.ts"],
|
||||||
|
),
|
||||||
|
tsconfig = ":tsconfig.json",
|
||||||
|
)
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "main",
|
||||||
|
srcs = ["main.ts"],
|
||||||
|
deps = [":worker"],
|
||||||
|
)
|
28
packages/service-worker/worker/test/BUILD.bazel
Normal file
28
packages/service-worker/worker/test/BUILD.bazel
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "test_lib",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(
|
||||||
|
["**/*.ts"],
|
||||||
|
),
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/service-worker/worker",
|
||||||
|
"//packages/service-worker/worker/testing",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
jasmine_node_test(
|
||||||
|
name = "test",
|
||||||
|
srcs = [],
|
||||||
|
# TODO(alxhub): re-enable when need for main() is removed
|
||||||
|
tags = ["manual"],
|
||||||
|
deps = [
|
||||||
|
":test_lib",
|
||||||
|
],
|
||||||
|
)
|
15
packages/service-worker/worker/testing/BUILD.bazel
Normal file
15
packages/service-worker/worker/testing/BUILD.bazel
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "testing",
|
||||||
|
testonly = 1,
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages:types",
|
||||||
|
"//packages/service-worker/worker",
|
||||||
|
"@rxjs",
|
||||||
|
],
|
||||||
|
)
|
15
packages/upgrade/static/BUILD.bazel
Normal file
15
packages/upgrade/static/BUILD.bazel
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
||||||
|
|
||||||
|
ts_library(
|
||||||
|
name = "static",
|
||||||
|
srcs = glob(["**/*.ts"]),
|
||||||
|
module_name = "@angular/upgrade/static",
|
||||||
|
tsconfig = "//packages:tsconfig",
|
||||||
|
deps = [
|
||||||
|
"//packages/core",
|
||||||
|
"//packages/platform-browser",
|
||||||
|
"//packages/platform-browser-dynamic",
|
||||||
|
],
|
||||||
|
)
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
set -u -e -o pipefail
|
set -u -e -o pipefail
|
||||||
|
|
||||||
bazel build packages/...
|
bazel build --config=ci packages/...
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
build --strategy=TypeScriptCompile=worker
|
build --strategy=TypeScriptCompile=worker
|
||||||
build --strategy=AngularTemplateCompile=worker
|
build --strategy=AngularTemplateCompile=worker
|
||||||
|
|
||||||
|
# Enable debugging tests with --config=debug
|
||||||
|
test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
# Filesystem interactions #
|
# Filesystem interactions #
|
||||||
###############################
|
###############################
|
||||||
@ -44,3 +47,6 @@ test --test_output=errors
|
|||||||
# Helps to demonstrate that bazel uses all the cores on the machine.
|
# Helps to demonstrate that bazel uses all the cores on the machine.
|
||||||
build --experimental_ui
|
build --experimental_ui
|
||||||
test --experimental_ui
|
test --experimental_ui
|
||||||
|
|
||||||
|
# Don't be spammy in the continuous integration logs
|
||||||
|
build:ci --noshow_progress
|
||||||
|
49
yarn.lock
49
yarn.lock
@ -2,15 +2,9 @@
|
|||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
"@bazel/typescript@0.3.2":
|
"@bazel/ibazel@^0.1.1":
|
||||||
version "0.3.2"
|
version "0.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/@bazel/typescript/-/typescript-0.3.2.tgz#b4721b7f9e4c447a553555eab4a437f538a9496d"
|
resolved "https://registry.yarnpkg.com/@bazel/ibazel/-/ibazel-0.1.1.tgz#f970c08b4e4efb0ab17e04ade3cc610554f33bed"
|
||||||
dependencies:
|
|
||||||
"@types/node" "7.0.18"
|
|
||||||
"@types/source-map" "^0.5.1"
|
|
||||||
protobufjs "5.0.0"
|
|
||||||
tsickle "0.25.x"
|
|
||||||
typescript "2.5.x"
|
|
||||||
|
|
||||||
"@google-cloud/common@^0.13.0":
|
"@google-cloud/common@^0.13.0":
|
||||||
version "0.13.5"
|
version "0.13.5"
|
||||||
@ -119,10 +113,6 @@
|
|||||||
version "6.0.88"
|
version "6.0.88"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.88.tgz#f618f11a944f6a18d92b5c472028728a3e3d4b66"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.88.tgz#f618f11a944f6a18d92b5c472028728a3e3d4b66"
|
||||||
|
|
||||||
"@types/node@7.0.18":
|
|
||||||
version "7.0.18"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.18.tgz#cd67f27d3dc0cfb746f0bdd5e086c4c5d55be173"
|
|
||||||
|
|
||||||
"@types/q@^0.0.32":
|
"@types/q@^0.0.32":
|
||||||
version "0.0.32"
|
version "0.0.32"
|
||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
||||||
@ -2985,7 +2975,7 @@ glob@^4.3.1:
|
|||||||
minimatch "^2.0.1"
|
minimatch "^2.0.1"
|
||||||
once "^1.3.0"
|
once "^1.3.0"
|
||||||
|
|
||||||
glob@^5.0.10, glob@^5.0.14, glob@^5.0.15, glob@~5.0.0:
|
glob@^5.0.14, glob@^5.0.15, glob@~5.0.0:
|
||||||
version "5.0.15"
|
version "5.0.15"
|
||||||
resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1"
|
resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -5521,15 +5511,6 @@ proto-list@~1.2.1:
|
|||||||
version "1.2.4"
|
version "1.2.4"
|
||||||
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
|
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
|
||||||
|
|
||||||
protobufjs@5.0.0:
|
|
||||||
version "5.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-5.0.0.tgz#4223063233ea96ac063ca2b554035204db524fa1"
|
|
||||||
dependencies:
|
|
||||||
ascli "~1"
|
|
||||||
bytebuffer "~5"
|
|
||||||
glob "^5.0.10"
|
|
||||||
yargs "^3.10.0"
|
|
||||||
|
|
||||||
protobufjs@^5.0.0:
|
protobufjs@^5.0.0:
|
||||||
version "5.0.2"
|
version "5.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-5.0.2.tgz#59748d7dcf03d2db22c13da9feb024e16ab80c91"
|
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-5.0.2.tgz#59748d7dcf03d2db22c13da9feb024e16ab80c91"
|
||||||
@ -6194,11 +6175,11 @@ rx-lite@^3.1.2:
|
|||||||
version "3.1.2"
|
version "3.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
|
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
|
||||||
|
|
||||||
rxjs@^5.5.2:
|
rxjs@5.5.5:
|
||||||
version "5.5.2"
|
version "5.5.5"
|
||||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.2.tgz#28d403f0071121967f18ad665563255d54236ac3"
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.5.tgz#e164f11d38eaf29f56f08c3447f74ff02dd84e97"
|
||||||
dependencies:
|
dependencies:
|
||||||
symbol-observable "^1.0.1"
|
symbol-observable "1.0.1"
|
||||||
|
|
||||||
safe-buffer@5.1.1, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
safe-buffer@5.1.1, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
||||||
version "5.1.1"
|
version "5.1.1"
|
||||||
@ -6831,9 +6812,9 @@ supports-color@^3.1.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
has-flag "^1.0.0"
|
has-flag "^1.0.0"
|
||||||
|
|
||||||
symbol-observable@^1.0.1:
|
symbol-observable@1.0.1:
|
||||||
version "1.0.4"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d"
|
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.1.tgz#8340fc4702c3122df5d22288f88283f513d3fdd4"
|
||||||
|
|
||||||
systemjs@0.18.10:
|
systemjs@0.18.10:
|
||||||
version "0.18.10"
|
version "0.18.10"
|
||||||
@ -7102,7 +7083,7 @@ ts-api-guardian@0.2.2:
|
|||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
typescript "2.0.10"
|
typescript "2.0.10"
|
||||||
|
|
||||||
tsickle@0.25.5, tsickle@0.25.x:
|
tsickle@0.25.5:
|
||||||
version "0.25.5"
|
version "0.25.5"
|
||||||
resolved "https://registry.yarnpkg.com/tsickle/-/tsickle-0.25.5.tgz#2891d29f97c4aab1306e06378d8496d1765a4bfe"
|
resolved "https://registry.yarnpkg.com/tsickle/-/tsickle-0.25.5.tgz#2891d29f97c4aab1306e06378d8496d1765a4bfe"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -7156,6 +7137,12 @@ tsscmp@1.0.5:
|
|||||||
version "1.0.5"
|
version "1.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.5.tgz#7dc4a33af71581ab4337da91d85ca5427ebd9a97"
|
resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.5.tgz#7dc4a33af71581ab4337da91d85ca5427ebd9a97"
|
||||||
|
|
||||||
|
tsutils@2.12.1:
|
||||||
|
version "2.12.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.12.1.tgz#f4d95ce3391c8971e46e54c4cf0edb0a21dd5b24"
|
||||||
|
dependencies:
|
||||||
|
tslib "^1.7.1"
|
||||||
|
|
||||||
tsutils@^1.4.0:
|
tsutils@^1.4.0:
|
||||||
version "1.9.1"
|
version "1.9.1"
|
||||||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.9.1.tgz#b9f9ab44e55af9681831d5f28d0aeeaf5c750cb0"
|
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.9.1.tgz#b9f9ab44e55af9681831d5f28d0aeeaf5c750cb0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user