Skip to content

Commit

Permalink
fixup! test(ivy): switch HelloWorld to ivy compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Mar 17, 2018
1 parent 447d348 commit bb2cd4d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/core/test/bundling/hello_world/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ load("//tools:defaults.bzl", "ts_library", "ivy_ng_module", )
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("//packages/bazel/src:ng_rollup_bundle.bzl", "ng_rollup_bundle")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
load("@build_bazel_rules_typescript//:defs.bzl", "ts_devserver")

ivy_ng_module(
name = "hello_world",
Expand Down Expand Up @@ -54,3 +55,14 @@ js_expected_symbol_test(
src = ":bundle.min_debug.js",
golden = ":bundle.golden_symbols.json",
)


ts_devserver(
name = "devserver",
static_files = [
":bundle.min_debug.js",
":bundle.min.js",
"index.html",
],
deps = [],
)
26 changes: 26 additions & 0 deletions packages/core/test/bundling/hello_world/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!doctype html>

<html>
<head>
<title>Angular Hello World Example</title>
</head>
<body>
<!-- The Angular application will be bootstrapped into this element. -->
<hello-world></hello-world>

<!--
Script tag which bootstraps the application.
There are two scripts sources: `bundle.min.js` and `bundle.min_debug.js` You can
switch between which bundle the browser loads to experiment with the application.
- `bundle.min.js`: Is what the site would serve to their users. It has gone
through rollup, build-optimizer, and uglify with tree shaking.
- `bundle.min_debug.js`: Is what the developer would like to see when debugging
the application. It has also done through full pipeline of rollup, build-optimizer,
and uglify, however special flags were passed to uglify to prevent inlining and
property renaming.
-->
<script src="/bundle.min.js" IGNORE-src="/bundle.min_debug.js"></script>
</body>
</html>

0 comments on commit bb2cd4d

Please sign in to comment.