build the public portion of the component catalog

This commit is contained in:
Brian Hicks 2023-05-02 06:12:19 -05:00
parent 810504f590
commit d6a588d505
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
3 changed files with 14 additions and 3 deletions

2
BUCK
View File

@ -23,5 +23,5 @@ node_modules(
npm_bin(
name = "browserify",
node_modules = ":node_modules",
visibility = ["//lib:lib.js"],
visibility = ["//lib:bundle.js"],
)

View File

@ -10,3 +10,13 @@ elm_app(
"src": "src",
}
)
filegroup(
name = "public",
srcs = {
"index.html": "index.html",
"favicon.svg": "favicon.svg",
"bundle.js": "//lib:bundle.js",
"elm.js": ":app",
}
)

View File

@ -1,6 +1,7 @@
genrule(
name = "lib.js",
out = "lib.js",
name = "bundle.js",
out = "bundle.js",
srcs = glob(["**/*.js"]),
cmd = "$(exe //:browserify) index.js --outfile $OUT",
visibility = ["//component-catalog:public"],
)