forked from grahamjenson/bazel-golang-wasm-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
31 lines (27 loc) · 944 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
# gazelle:prefix github.com/grahamjenson/bazel-golang-wasm-protoc
gazelle(name = "gazelle")
buildifier(name = "buildifier")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "github.com/grahamjenson/bazel-golang-wasm-protoc",
visibility = ["//visibility:private"],
deps = [
"//protos:go_default_library",
"//server:go_default_library",
"@com_github_maxence_charriere_go_app_v6//pkg/app:go_default_library",
],
)
go_binary(
name = "server",
data = [
"//wasm:app.wasm",
"@com_github_bootstrap//file:bootstrap.css",
"@com_github_ec2instances//file:instances.json",
],
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)