Skip to content

Commit 4925cf1

Browse files
authored
fix: add missing renders (#134)
* fix: add missing renders * fix: add missing renders * chore: simplified renders copy targets * chore: added note about disabled target * chore: use release version of bzlws * chore: undo change
1 parent ca60478 commit 4925cf1

24 files changed

+79
-25
lines changed

BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
2-
load("@aspect_bazel_lib//lib/private:tar_toolchain.bzl", "tar_toolchain")
31
load("@aspect_bazel_lib//lib:tar.bzl", "tar_lib")
2+
load("@aspect_bazel_lib//lib/private:tar_toolchain.bzl", "tar_toolchain")
3+
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
44
load("@npm//:defs.bzl", "npm_link_all_packages")
55

66
alias(

MODULE.bazel

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module(name = "ecsact_website")
22

3+
bazel_dep(name = "rules_cc", version = "0.0.9")
34
bazel_dep(name = "aspect_bazel_lib", version = "2.7.8")
45
bazel_dep(name = "aspect_rules_js", version = "2.0.0-rc6")
56
bazel_dep(name = "aspect_rules_swc", version = "2.0.0-rc1")
@@ -12,10 +13,16 @@ bazel_dep(name = "buildifier_prebuilt", version = "6.4.0")
1213
bazel_dep(name = "bzlws")
1314
git_override(
1415
module_name = "bzlws",
15-
commit = "b7b10a115da356ec23b0cf0c697919baa7b7301c",
16+
commit = "d5fa2eeb89d9a64d26943bf7f545b3740be0a454",
1617
remote = "https://github.com/zaucy/bzlws",
1718
)
1819

20+
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
21+
22+
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
23+
llvm.toolchain(llvm_version = "17.0.6")
24+
use_repo(llvm, "llvm_toolchain")
25+
1926
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm", dev_dependency = True)
2027
use_repo(pnpm, "pnpm")
2128

@@ -38,5 +45,6 @@ use_repo(rules_ts_ext, "npm_typescript")
3845

3946
register_toolchains(
4047
"//:tar_toolchain",
48+
"@llvm_toolchain//:all",
4149
dev_dependency = True,
4250
)

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ bazel run //:format
4545
- prettier for html/css/ts
4646
- buildifier for starlark
4747

48+
### Updating Renders
49+
50+
There are several rendered assets that don't automatically build. To render them use the following
51+
52+
```sh
53+
bazel run //src/renders:copy_renders
54+
```
55+
56+
If you get an error about not being able to read `.param` files make sure you don't have `--experimental_convenience_symlinks=ignore` set. [bzlws issue](https://github.com/zaucy/bzlws/issues/18)
57+

WORKSPACE.bzlmod

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,28 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
33
http_archive(
44
name = "typed_css",
55
strip_prefix = "typed.css-0.8.9",
6-
integrity = "sha256-lyk1CItjSFCMn54epxEg2N1/H7sBBONk5xA6BcvkeS8=",
6+
integrity = "sha256-lyk1CItjSFCMn54epxEg2N1/H7sBBONk5xA6BcvkeS8=",
77
url = "https://github.com/brandonmcconnell/typed.css/archive/refs/tags/v0.8.9.zip",
88
build_file_content = """
99
package(default_visibility = ["//visibility:public"])
1010
exports_files(["typed.scss"])
11-
"""
11+
""",
1212
)
1313

1414
http_archive(
1515
name = "rules_blender",
16-
sha256 = "05acad9716ec6c80cadb603e7f585acbaadf670bce6920959824122e25e97e9c",
17-
strip_prefix = "rules_blender-dc8c77bdb27e4af7cb1c95610a119a8ad64e57c7",
18-
urls = ["https://github.com/zaucy/rules_blender/archive/dc8c77bdb27e4af7cb1c95610a119a8ad64e57c7.zip"],
16+
integrity = "sha256-HKH9Y2wiL/EkVEFcaCZHT8ACW8SHX24UZ8EHEhwcI8w=",
17+
strip_prefix = "rules_blender-e5f5b1ef894fe4da7b3cbf85ca857b6fd3bdffba",
18+
urls = ["https://github.com/zaucy/rules_blender/archive/e5f5b1ef894fe4da7b3cbf85ca857b6fd3bdffba.zip"],
1919
)
2020

2121
load("@rules_blender//:repo.bzl", "blender_repository")
2222

23-
blender_repository(name = "blender")
23+
blender_repository(name = "blender", blender_version = "system", only_system_installed_blender = True)
24+
25+
http_archive(
26+
name = "ecsact_logo",
27+
sha256 = "0ecba63837824cb9588ca350e8a9bd1263eb809be8e699aaefd0d7134fd533fe",
28+
strip_prefix = "logo-ad8a285861d4744460d9d2a6458a4010a4ccf3e4",
29+
urls = ["https://github.com/ecsact-dev/logo/archive/ad8a285861d4744460d9d2a6458a4010a4ccf3e4.zip"],
30+
)

src/assets/BUILD.bazel

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@ filegroup(
44
name = "assets",
55
srcs = glob(["**/*"]) + [
66
# renders are in the bazelignore so they must be manually specified here
7-
"renders/ecsact-action-anim.webm",
87
"renders/branch.png",
9-
"renders/systems.png",
10-
"renders/runtime.png",
118
"renders/character-dying.webm",
9+
"renders/ecsact-action-anim.webm",
10+
"renders/ecsact-all-color.png",
11+
"renders/ecsact-all-color44.png",
12+
"renders/ecsact-all-color150.png",
13+
"renders/ecsact-black.png",
14+
"renders/ecsact-black44.png",
15+
"renders/ecsact-black150.png",
16+
"renders/ecsact-color.png",
17+
"renders/ecsact-color44.png",
18+
"renders/ecsact-color150.png",
19+
"renders/ecsact-white.png",
20+
"renders/ecsact-white44.png",
21+
"renders/ecsact-white150.png",
22+
"renders/runtime.png",
23+
"renders/systems.png",
1224
],
1325
)

src/assets/renders/branch.png

-1.22 KB
Loading
173 KB
Loading
21.5 KB
Loading
3.51 KB
Loading
129 KB
Loading

0 commit comments

Comments
 (0)