You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
944 B
Python
45 lines
944 B
Python
load("@rules_go//go:def.bzl", "go_library", "go_test")
|
|
load("@gazelle//:def.bzl", "gazelle")
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
gazelle(
|
|
name = "gazelle-update-repos",
|
|
args = [
|
|
"-from_file=go.mod",
|
|
"-to_macro=deps.bzl%go_dependencies",
|
|
"-prune",
|
|
],
|
|
command = "update-repos",
|
|
)
|
|
|
|
go_library(
|
|
name = "obsidian-markdown",
|
|
srcs = [
|
|
"lexemetype_string.go",
|
|
"lexer.go",
|
|
"states.go",
|
|
"wikilink.go",
|
|
],
|
|
importpath = "code.ndumas.com/ndumas/obsidian-markdown",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@org_uber_go_zap//:zap",
|
|
"@org_uber_go_zap//zapcore",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "obsidian-markdown_test",
|
|
size = "small",
|
|
srcs = [
|
|
"lexer_test.go",
|
|
"wikilink_test.go",
|
|
],
|
|
deps = [
|
|
":obsidian-markdown",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@org_uber_go_zap//zapcore",
|
|
],
|
|
)
|