hscloud/third_party/vizjs.bzl
Serge Bazanski fe94c9b649 dc/topo: unvendor viz.js
This instead grabs a prebuild viz.js 2.x from a GH release.

Ideally we would use some more generic JS dep mechanism here (there's
some Good (tm) ones for Bazel now!), but this will do for now.

Change-Id: I58e9f67534acd2e3d08d93dc5f9a989dbbbbe3d1
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1721
Reviewed-by: radex <radex@hackerspace.pl>
2023-10-10 15:25:34 +00:00

15 lines
640 B
Python

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
def vizjs_repositories():
http_file(
name = "vizjs-viz.js",
url = "https://github.com/mdaines/viz-js/releases/download/v2.1.2/viz.js",
sha256 = "f111f22be005ceaf625f06c5a36ba7aa27703dbc0753914559edd1c24715b6e5",
downloaded_file_path = "viz.js",
)
http_file(
name = "vizjs-full.render.js",
url = "https://github.com/mdaines/viz-js/releases/download/v2.1.2/full.render.js",
sha256 = "3a0aace75d0b1677a4afda3b38b7697a569a02636cb3d7a04114f2cc2a95d8d4",
downloaded_file_path = "full.render.js",
)