Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Attempt to add AngularFire2 bundle to devserver #55

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ filegroup(
srcs = glob(ANGULAR_TESTING),
)

# For serving the AngularFire2 bundles from the devserver.
filegroup(
name = "angularfire2_bundles",
srcs = [
"//:node_modules/angularfire2/bundles/core.umd.js",
"//:node_modules/angularfire2/bundles/firestore.umd.js",
]
)

filegroup(
name = "angular_bootstrap_scripts",
# do not sort
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"@angular/common": "5.1.3",
"@angular/core": "5.1.3",
"@angular/platform-browser": "5.1.3",
"angularfire2": "^5.0.0-rc.4",
"firebase": "^4.8.2",
"rxjs": "5.5.6",
"zone.js": "0.8.19"
},
Expand Down
2 changes: 1 addition & 1 deletion src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ load("@build_bazel_rules_typescript//:defs.bzl", "ts_devserver")
ts_devserver(
name = "devserver",
entry_module = "angular_bazel_example/src/main",
scripts = ["//:angular_bundles"],
scripts = ["//:angular_bundles", "//:angularfire2_bundles"],
serving_path = "/bundle.js",
static_files = [
":zone.js",
Expand Down
Loading