mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
chore: sync tinkering updates
This commit is contained in:
parent
4cef998233
commit
0002cefd7f
13 changed files with 628 additions and 121 deletions
32
src/jstest/BUILD.bazel
Normal file
32
src/jstest/BUILD.bazel
Normal file
|
@ -0,0 +1,32 @@
|
|||
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
||||
load("@io_bazel_rules_docker//nodejs:image.bzl", "nodejs_image")
|
||||
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
ts_library(
|
||||
name = "lib",
|
||||
srcs = glob(["*.ts"]),
|
||||
)
|
||||
|
||||
nodejs_binary(
|
||||
name = "jstest",
|
||||
data = [":lib"],
|
||||
entry_point = "index.ts",
|
||||
)
|
||||
|
||||
nodejs_image(
|
||||
name = "image",
|
||||
data = [":lib"],
|
||||
entry_point = "index.ts",
|
||||
)
|
||||
|
||||
container_push(
|
||||
name = "+publish",
|
||||
format = "Docker",
|
||||
image = ":image",
|
||||
registry = "docker.pkg.github.com",
|
||||
repository = "roleypoly/roleypoly/jstest",
|
||||
tag = "{STABLE_GIT_BRANCH}",
|
||||
)
|
|
@ -1 +1 @@
|
|||
export const aaa = "aa";
|
||||
console.log("hello world");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue