use browserify to build lib.js

This commit is contained in:
Brian Hicks 2023-05-02 05:59:37 -05:00
parent 60dc11f2a9
commit 810504f590
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
2 changed files with 7 additions and 0 deletions

1
BUCK
View File

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

6
lib/BUCK Normal file
View File

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