Skip to content

Commit

Permalink
test(protractor): use new rollup_bundle in protractor-2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored and alexeagle committed Oct 5, 2019
1 parent 00d1187 commit e1a344b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions packages/protractor/test/protractor-2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
load("@build_bazel_rules_nodejs//:index.bzl", "rollup_bundle")
load("@npm//http-server:index.bzl", "http_server")
load("@npm_bazel_protractor//:index.from_src.bzl", "protractor_web_test_suite")
load("@npm_bazel_rollup//:index.from_src.bzl", "rollup_bundle")
load("@npm_bazel_terser//:index.from_src.bzl", "terser_minified")
load("@npm_bazel_typescript//:index.bzl", "ts_config")
load("@npm_bazel_typescript//:index.from_src.bzl", "ts_devserver", "ts_library")

Expand All @@ -16,25 +17,29 @@ ts_library(
tsconfig = ":tsconfig.json",
)

rollup_bundle(
name = "bundle",
entry_point = ":app.ts",
deps = [":app"],
)

terser_minified(
name = "bundle.min",
src = ":bundle",
)

ts_devserver(
name = "devserver",
serving_path = "/bundle.min.js",
static_files = ["index.html"],
deps = [":app"],
)

rollup_bundle(
name = "bundle",
enable_code_splitting = False,
entry_point = ":app.ts",
deps = [":app"],
)

http_server(
name = "prodserver",
data = [
"index.html",
":bundle.min.js",
":bundle.min",
],
# This repeats the default, but is here for coverage
# to make sure the generated index.bzl handles it
Expand Down

0 comments on commit e1a344b

Please sign in to comment.