diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { wasm.max_memory = 1024 * 1024; const web = b.step("web", "Install the standalone browser client into zig-out/web"); web.dependOn(&b.addInstallFileWithDir(wasm.getEmittedBin(), .{ .custom = "web/_cloud9" }, "cloud9.wasm").step); - for ([_][]const u8{ "index.html", "app.mjs", "client.mjs", "style.css" }) |file| { + for ([_][]const u8{ "index.html", "app.mjs", "catalog.mjs", "client.mjs", "style.css" }) |file| { web.dependOn(&b.addInstallFileWithDir(b.path(b.fmt("web/static/{s}", .{file})), .{ .custom = if (std.mem.eql(u8, file, "index.html")) "web" else "web/_cloud9" }, file).step); } const bridge = b.addExecutable(.{ .name = "9web", .root_module = b.createModule(.{ @@ -44,6 +44,9 @@ pub fn build(b: *std.Build) void { const catalog_test = b.addSystemCommand(&.{ "python3", "test/web/catalog.py" }); catalog_test.addArtifactArg(bridge); b.step("catalog-test", "Test local sites, controls, watcher and passive discovery").dependOn(&catalog_test.step); + const catalog_ui = b.addSystemCommand(&.{ "node", "test/web/catalog_ui.mjs" }); + catalog_ui.addArtifactArg(bridge); + b.step("catalog-ui-test", "Test integrated Files, Sites and Services views in Chromium").dependOn(&catalog_ui.step); } const run_bridge = b.addRunArtifact(bridge); run_bridge.addPassthruArgs(); |
