comparison gui_ze/gui_ze.bzl @ 175:71ad34a8bc9a hg-web

[HgWeb] Can stream hg response now. Added react page for hg web since we use json anyway.
author MrJuneJune <me@mrjunejune.com>
date Tue, 20 Jan 2026 06:06:47 -0800
parents f3084bca7317
children fed99fc04e12
comparison
equal deleted inserted replaced
174:1ba8c1df082c 175:71ad34a8bc9a
174 outputs = [out], 174 outputs = [out],
175 tools = [ctx.executable._bun] + inputs, 175 tools = [ctx.executable._bun] + inputs,
176 command = """ 176 command = """
177 cp -r third_party/bun/** . \ 177 cp -r third_party/bun/** . \
178 && cp -r {src_folder}/** . \ 178 && cp -r {src_folder}/** . \
179 && export NODE_PATH=./node_modules && {bun_path} build {input_path} --outfile {output_path} 179 && export NODE_PATH=./node_modules && {bun_path} build {input_path} --outfile {output_path} --target browser
180 """.format( 180 """.format(
181 bun_path = ctx.executable._bun.path, 181 bun_path = ctx.executable._bun.path,
182 src_folder = ctx.attr.src_folder, 182 src_folder = ctx.attr.src_folder,
183 input_path = ctx.file.src.path.split("/")[-1], 183 # Fix this lol
184 input_path = "/".join(ctx.file.src.path.split("/")[-2:]),
184 output_path = out.path, 185 output_path = out.path,
185 ), 186 ),
186 progress_message = "Bundling {} with Bun!\n\n".format(ctx.file.src.path), 187 progress_message = "Bundling {} with Bun!\n\n".format(ctx.file.src.path),
187 ) 188 )
188 189