build: set default ts_devserver serving_path to /app_bundle.js to match g3 (#33996)

PR Close #33996
This commit is contained in:
Greg Magolan 2019-11-25 13:46:16 -08:00 committed by Miško Hevery
parent c4335e2817
commit 005c4a1cc5
100 changed files with 150 additions and 196 deletions

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
ng_module(

View File

@ -20,8 +20,8 @@
<h1>Class Binding Benchmark</h1>
<app-component>Loading...</app-component>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
ng_module(

View File

@ -13,8 +13,8 @@
<benchmark-root>Loading...</benchmark-root>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -20,7 +20,7 @@
<app id="root">Loading...</app>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -29,7 +29,7 @@
<largetable id="root">Loading...</largetable>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -30,7 +30,7 @@
</div>
<script src="/npm/node_modules/incremental-dom/dist/incremental-dom.js"></script>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,4 +1,4 @@
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -29,7 +29,7 @@
<largetable id="root"></largetable>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -29,7 +29,7 @@
<largetable id="root">Loading...</largetable>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -29,7 +29,7 @@
<largetable id="root">Loading...</largetable>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
ng_module(

View File

@ -28,7 +28,7 @@
<largetable id="root"></largetable>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -26,7 +26,7 @@
<tree id="root">Loading...</tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -27,7 +27,7 @@
</div>
<script src="/npm/node_modules/incremental-dom/dist/incremental-dom.js"></script>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,4 +1,4 @@
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -29,7 +29,7 @@
</div>
<div id="root"></div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -31,7 +31,7 @@
<tree id="root" data="initData">Loading...</tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -31,7 +31,7 @@
<tree id="root">Loading...</tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -31,7 +31,7 @@
<tree id="root">Loading...</tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -25,7 +25,7 @@
<tree id="root"></tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -26,7 +26,7 @@
<tree id="root">Loading...</tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
ng_module(

View File

@ -31,7 +31,7 @@
<tree id="root"></tree>
</div>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_library")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
load("//modules/benchmarks:benchmark_test.bzl", "benchmark_test")
package(default_visibility = ["//modules/benchmarks:__subpackages__"])

View File

@ -36,7 +36,7 @@
ngDevMode = false;
</script>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//modules/benchmarks:__subpackages__"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
ng_module(
name = "application_lib",

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -9,7 +9,7 @@
Loading...
</async-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,4 +1,4 @@
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -15,7 +15,7 @@
<body>
<gestures-app></gestures-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -6,7 +6,7 @@
Loading...
</hello-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -6,7 +6,7 @@
Loading...
</http-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -6,7 +6,7 @@
Loading...
</jsonp-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -21,7 +21,7 @@
Loading...
</key-events-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -14,7 +14,7 @@
Loading...
</reactive-forms>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -14,7 +14,7 @@
Loading...
</order-management-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -14,7 +14,7 @@
Loading...
</person-management-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -6,7 +6,7 @@
Loading...
</relative-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -11,7 +11,7 @@
via source maps!
</p>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -6,7 +6,7 @@
Loading...
</svg-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -14,7 +14,7 @@
Loading...
</template-driven-forms>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -8,7 +8,7 @@
Loading...
</todo-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ts_devserver", "ts_library")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -17,7 +17,7 @@
<span class="greeting">Greetings from {{name}}!</span>
</upgrade-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -7,7 +7,7 @@
<body>
<image-demo></image-demo>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -8,7 +8,7 @@
Loading...
</input-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -21,7 +21,7 @@
Loading...
</hello-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -8,7 +8,7 @@
<p id="echo_result"></p>
<p id="ui_result"></p>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -4,7 +4,7 @@
<body>
<app></app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -7,7 +7,7 @@
Loading...
</todo-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
package(default_visibility = ["//modules/playground:__subpackages__"])

View File

@ -6,7 +6,7 @@
Loading...
</zippy-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,8 +1,7 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle")
load("//tools:defaults.bzl", "ng_module", "ng_rollup_bundle", "ts_devserver")
load("@npm//http-server:index.bzl", "http_server")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
ng_module(
name = "animation_world",

View File

@ -1,9 +1,8 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_devserver", "ts_library")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("@npm//http-server:index.bzl", "http_server")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
ng_module(
name = "todo",

View File

@ -1,8 +1,7 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_devserver", "ts_library")
load("@npm//http-server:index.bzl", "http_server")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
ng_module(
name = "todo_i18n",

View File

@ -1,8 +1,7 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_rollup_bundle", "ts_devserver", "ts_library")
load("@npm//http-server:index.bzl", "http_server")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
ng_module(
name = "todo",

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_devserver", "ts_library")
ng_module(
name = "common_examples",

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "protractor_web_test_suite", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "protractor_web_test_suite", "ts_devserver", "ts_library")
ng_module(
name = "core_examples",

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_devserver", "ts_library")
ng_module(
name = "forms_examples",

View File

@ -12,7 +12,7 @@
<body>
<example-app>Loading...</example-app>
<!--default load location for ts_devserver-->
<script src="/_/ts_scripts.js"></script>
<!--load location for ts_devserver-->
<script src="/app_bundle.js"></script>
</body>
</html>

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "ts_devserver")
ng_module(
name = "router_activated_route_examples",

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_devserver", "ts_library")
ng_module(
name = "sw_push_examples",

View File

@ -1,7 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_devserver", "ts_library")
ng_module(
name = "sw_registration_options_examples",

View File

@ -1,5 +1,4 @@
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_library")
load("@npm_bazel_typescript//:index.bzl", "ts_devserver")
load("//tools:defaults.bzl", "ng_module", "protractor_web_test_suite", "ts_devserver", "ts_library")
"""
Macro that can be used to create the Bazel targets for an "upgrade" example. Since the

View File

@ -3,7 +3,7 @@
load("@build_bazel_rules_nodejs//:index.bzl", _nodejs_binary = "nodejs_binary", _npm_package = "npm_package")
load("@npm_bazel_jasmine//:index.bzl", _jasmine_node_test = "jasmine_node_test")
load("@npm_bazel_karma//:index.bzl", _karma_web_test = "karma_web_test", _karma_web_test_suite = "karma_web_test_suite")
load("@npm_bazel_typescript//:index.bzl", _ts_library = "ts_library")
load("@npm_bazel_typescript//:index.bzl", _ts_devserver = "ts_devserver", _ts_library = "ts_library")
load("@npm_bazel_protractor//:index.bzl", _protractor_web_test_suite = "protractor_web_test_suite")
load("//packages/bazel:index.bzl", _ng_module = "ng_module", _ng_package = "ng_package")
load("//tools/ng_rollup_bundle:ng_rollup_bundle.bzl", _ng_rollup_bundle = "ng_rollup_bundle")
@ -85,6 +85,14 @@ def _default_module_name(testonly):
return None
def ts_devserver(**kwargs):
"""Default values for ts_devserver"""
serving_path = kwargs.pop("serving_path", "/app_bundle.js")
_ts_devserver(
serving_path = serving_path,
**kwargs
)
def ts_library(tsconfig = None, testonly = False, deps = [], module_name = None, **kwargs):
"""Default values for ts_library"""
deps = deps + ["@npm//tslib"]