Skip to content

Commit

Permalink
build: node binary poc
Browse files Browse the repository at this point in the history
  • Loading branch information
josephperrott committed Oct 25, 2019
1 parent e4e8dbd commit 8dbec8c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tools/rbe-test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

load("//tools:defaults.bzl", "ng_rollup_bundle", "ts_library")


load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
ts_library(
name = "lib",
srcs = [
"test-file.ts"
]
)

ng_rollup_bundle(
name = "bundle",
entry_point = ":test-file.ts",
deps = [
":lib",
]
)

nodejs_binary(
name = "bin",
data = [":bundle"],
entry_point = ":bundle" + ".es2015.js",
)

1 change: 1 addition & 0 deletions tools/rbe-test/test-file.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('run!');

0 comments on commit 8dbec8c

Please sign in to comment.