Skip to content

Commit

Permalink
build: convert entry_point to label
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored and gregmagolan committed Jun 10, 2019
1 parent e4dade4 commit 48b79eb
Show file tree
Hide file tree
Showing 56 changed files with 108 additions and 3,786 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ yarn_install(
"//:tools/yarn/check-yarn.js",
],
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
# Don't install devDependencies, they are large and not used under Bazel
prod_only = True,
# Temporarily disable node_modules symlinking until the fix for
# https://github.com/bazelbuild/bazel/issues/8487 makes it into a
# future Bazel release
symlink_node_modules = False,
# Don't install devDependencies, they are large and not used under Bazel
prod_only = True,
yarn_lock = "//:yarn.lock",
)

# Install all bazel dependencies of the @npm npm packages
Expand Down
6 changes: 3 additions & 3 deletions integration/bazel/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ http_archive(
)

# Fetch sass rules for compiling sass files
# TODO: change back to upstream release after https://github.com/bazelbuild/rules_sass/pull/87 merged and released
http_archive(
name = "io_bazel_rules_sass",
sha256 = "4c87befcb17282b039ba8341df9a6cc45f461bf05776dcf35c7e40c7e79ce374",
strip_prefix = "rules_sass-3a4f31c74513ccfacce3f955b5c006352f7e9587",
url = "https://github.com/bazelbuild/rules_sass/archive/3a4f31c74513ccfacce3f955b5c006352f7e9587.zip",
strip_prefix = "rules_sass-9862dfc96a4a1f66fe171ef5e043b29853e8445b",
url = "https://github.com/manekinekko/rules_sass/archive/9862dfc96a4a1f66fe171ef5e043b29853e8445b.zip",
)

# Check the bazel version and download npm dependencies
Expand Down
2 changes: 1 addition & 1 deletion integration/bazel/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ts_devserver(

rollup_bundle(
name = "bundle",
entry_point = "src/main",
entry_point = ":main.ts",
deps = [
"//src",
# TODO(kyliau): These are not necessary. Bundle compiles fine without
Expand Down
2 changes: 1 addition & 1 deletion integration/bazel/src/hello-world/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ng_module(

ng_package(
name = "npm_package",
entry_point = "src/hello-world/index.js",
entry_point = ":index.ts",
deps = [":hello-world"],
)

Expand Down
Loading

0 comments on commit 48b79eb

Please sign in to comment.