Mercurial
comparison playground/BUILD @ 15:2b9e75756825
[GuiZe] Updated to handle bundling and created a shee
l script for pushing.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 03 Oct 2025 06:50:33 -0700 |
| parents | de54585a40f1 |
| children | fa2b8af609d9 |
comparison
equal
deleted
inserted
replaced
| 14:0570ada19343 | 15:2b9e75756825 |
|---|---|
| 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") | 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") |
| 2 load("//gui_ze:gui_ze.bzl", "bun_build", "move_to_directory") | 2 load("//gui_ze:gui_ze.bzl", "bun_build") |
| 3 | 3 |
| 4 alias( | 4 alias( |
| 5 name = "playground", | 5 name = "playground", |
| 6 actual = select({ | 6 actual = select({ |
| 7 "@platforms//os:osx": ":playground_osx", | 7 "@platforms//os:osx": ":playground_osx", |
| 11 cc_binary( | 11 cc_binary( |
| 12 name = "playground_osx", | 12 name = "playground_osx", |
| 13 srcs = ["main.c"], | 13 srcs = ["main.c"], |
| 14 ) | 14 ) |
| 15 | 15 |
| 16 # TODO: Testing out if I can create a symlink for this. | |
| 17 move_to_directory( | |
| 18 name = "node_modules", | |
| 19 data = ["//third_party/bun:node_modules"], | |
| 20 dest = "", | |
| 21 ) | |
| 22 | |
| 23 filegroup( | 16 filegroup( |
| 24 name = "all_ts_files", | 17 name = "all_ts_files", |
| 25 srcs = glob([ | 18 srcs = glob([ |
| 26 "**/*.ts", | 19 "**/*.ts", |
| 27 "**/*.tsx", | 20 "**/*.tsx", |
| 29 "**/*.jsx", | 22 "**/*.jsx", |
| 30 ], allow_empty=True) | 23 ], allow_empty=True) |
| 31 ) | 24 ) |
| 32 | 25 |
| 33 bun_build( | 26 bun_build( |
| 34 name = "playground_tsx", | 27 name = "hello", |
| 35 src = "main.ts", | 28 src = "main.ts", |
| 36 data = ["//third_party/bun:node_modules", ":all_ts_files"], | 29 data = ["//third_party/bun:node_modules", ":all_ts_files"], |
| 37 visibility = ["//visibility:public"], | 30 visibility = ["//visibility:public"], |
| 38 ) | 31 ) |