2023-04-27 00:10:36 +03:00
|
|
|
# A list of available rules and their signatures can be found here: https://buck2.build/docs/api/rules/
|
2023-04-27 01:15:52 +03:00
|
|
|
load("@prelude-nri//:elm.bzl", "elm_docs")
|
2023-05-02 13:57:56 +03:00
|
|
|
load("@prelude-nri//:node.bzl", "node_modules", "npm_bin")
|
2023-04-27 00:10:36 +03:00
|
|
|
|
2023-04-27 01:15:52 +03:00
|
|
|
elm_docs(
|
|
|
|
name = "docs.json",
|
|
|
|
elm_json = "elm.json",
|
2023-04-28 00:49:50 +03:00
|
|
|
src = "src",
|
2023-04-27 00:10:36 +03:00
|
|
|
)
|
2023-04-27 01:15:52 +03:00
|
|
|
|
2023-04-27 01:22:21 +03:00
|
|
|
filegroup(
|
|
|
|
name = "src",
|
|
|
|
srcs = glob(["src/**/*.elm"]),
|
|
|
|
visibility = ["//component-catalog:app"]
|
|
|
|
)
|
2023-05-01 22:56:57 +03:00
|
|
|
|
|
|
|
node_modules(
|
|
|
|
name = "node_modules",
|
|
|
|
package = "package.json",
|
|
|
|
package_lock = "package-lock.json",
|
|
|
|
)
|
2023-05-02 13:57:56 +03:00
|
|
|
|
|
|
|
npm_bin(
|
|
|
|
name = "browserify",
|
|
|
|
node_modules = ":node_modules",
|
2023-05-02 13:59:37 +03:00
|
|
|
visibility = ["//lib:lib.js"],
|
2023-05-02 13:57:56 +03:00
|
|
|
)
|